view topology/manager/Parent.cs @ 58:0d2c956060d8

add topology manager
author KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
date Tue, 25 Jan 2022 22:35:25 +0900 (2022-01-25)
parents
children c4f8630b7822
line wrap: on
line source
using System;
using System.Collections.Generic;

namespace Christie_net.topology.manager.Parent
{
    public class Parent
    {
        private String name;
    private int childrens = 0;

    public Parent(String name) {
        this.name = name;
    }

    public int children() {
        return childrens;
    }

    public void setChildren(int num) {
        childrens = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String n) {
        name = n;
    }

    public void increment() {
        childrens++;
    }

    public void decrement() {
        childrens--;
    }
    }
}