view src/main/java/christie/topology/manager/Parent.java @ 95:5cd99bac9abd

update CreateTreeTopology refactor
author akahori
date Sat, 15 Sep 2018 19:00:49 +0900
parents 2314c55534ef
children
line wrap: on
line source

package christie.topology.manager;

public class Parent {
    private String name;
    private int children = 0;

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

    public int children() {
        return children;
    }

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

    public String getName() {
        return name;
    }

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

    public void increment() {
        children++;
    }

    public void decrement() {
        children--;
    }

}