package schedframe.net.pce.topology; /** * Class representing a node. It's either GRID SITE or NETWORK NODE. * * @author Bartosz Belter * */ public class Node { /** * Node id (e.g. router id) */ String id; /** * Node type */ NodeType type; /** * Node name */ String name; /** * Additional information */ String description; public Node(String id, NodeType type) { super(); this.id = id; this.type = type; } /** * @return the id */ public String getId() { return id; } /** * @param id the id to set */ public void setId(String id) { this.id = id; } /** * @return the type */ public NodeType getType() { return type; } /** * @param type the type to set */ public void setType(NodeType type) { this.type = type; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public void setName(String name) { this.name = name; } /** * @return the description */ public String getDescription() { return description; } /** * @param description the description to set */ public void setDescription(String description) { this.description = description; } }