package schedframe.net.pce.topology; import java.util.ArrayList; import java.util.List; /** * Class representing virtual links between two nodes. * Please do not use this class to represent physical links, * try DataLink instead. * * @author Bartosz Belter * */ public class VirtualLink { /** * Link Id */ String id; /** * Link end-point */ Node endpoint1; /** * Link end-point */ Node endpoint2; /** * The calendar of TimeValue objects, representing bandwidth already used * or scheduled for future use */ protected List calendar = new ArrayList(); public VirtualLink(String id, Node endpoint1, Node endpoint2) { super(); this.id = id; this.endpoint1 = endpoint1; this.endpoint2 = endpoint2; } /** * @return the id */ public String getId() { return id; } /** * @param id the id to set */ public void setId(String id) { this.id = id; } /** * @param calendar the calendar to set */ public void setCalendar(List calendar) { this.calendar = calendar; } /** * @return the endpoint1 */ public Node getEndpoint1() { return endpoint1; } /** * @param endpoint1 the endpoint1 to set */ public void setEndpoint1(Node endpoint1) { this.endpoint1 = endpoint1; } /** * @return the endpoint2 */ public Node getEndpoint2() { return endpoint2; } /** * @param endpoint2 the endpoint2 to set */ public void setEndpoint2(Node endpoint2) { this.endpoint2 = endpoint2; } /** * @return the calendar */ public List getCalendar() { return calendar; } }