1234567891011121314151617181920212223242526272829303132 |
- package classes.holonControlUnit.messages;
- import java.util.ArrayList;
- import classes.Holon;
- public class NeighborhoodMsg {
- public enum Type { NEW_VIRTUAL_NEIGHBOR, REMOVE_VIRTUAL_NEIGHBOR, NEW_PHYSICAL_NEIGHBOR, REMOVE_PHYSICAL_NEIGHBOR }
- private Type type;
- private ArrayList<String> neighbors;
- public NeighborhoodMsg(Type type, ArrayList<String> newVirtualNeighbor) {
- super();
- this.type = type;
- this.neighbors = newVirtualNeighbor;
- }
- @Override
- public String toString() {
- return "NeighborhoodMsg [type=" + type + ", newVirtualNeighbor=" + neighbors + "]";
- }
- public ArrayList<String> getNeighbors() {
- return neighbors;
- }
- public Type getType() {
- return type;
- }
-
- }
|