public class TrafficAllocationActions
extends Object
| Constructor and Description |
|---|
TrafficAllocationActions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(int originNodeId,
int destinationNodeId,
double capacityInErlangs,
double lengthInKm,
Map<String,String> attributes) |
void |
addProtectionSegment(double reservedBandwidth,
int[] sequenceOfLinks,
Map<String,String> attributes) |
void |
addProtectionSegmentToRouteBackupSegmentList(int segmentId,
int routeId) |
void |
addRoute(int demandId,
double trafficVolume,
int[] sequenceOfLinks,
Map<String,String> attributes) |
boolean |
getAllRoutesRemoved() |
Map<Integer,Set<Integer>> |
getAssignedSegmentsToRoutes() |
Map<Integer,Pair<Double,Map<String,String>>> |
getModifiedLinks() |
Map<Integer,Pair<Double,Map<String,String>>> |
getModifiedProtectionSegments() |
Map<Integer,Pair<Double,Map<String,String>>> |
getModifiedRoutes() |
List<Quadruple<Pair<Integer,Integer>,Double,Double,Map<String,String>>> |
getNewLinks() |
List<Triple<Double,int[],Map<String,String>>> |
getNewProtectionSegments() |
List<Quadruple<Integer,Double,int[],Map<String,String>>> |
getNewRoutes() |
int[] |
getRemovedLinks() |
int[] |
getRemovedProtectionSegments() |
int[] |
getRemovedRoutes() |
Map<Integer,Set<Integer>> |
getUnassignedSegmentsFromRoutes() |
boolean |
isEmpty()
Checks whether no action is defined.
|
void |
modifyLink(int linkId,
double capacityInErlangs,
Map<String,String> attributes) |
void |
modifyProtectionSegment(int segmentId,
double trafficVolume,
Map<String,String> attributes) |
void |
modifyRoute(int routeId,
double trafficVolume,
Map<String,String> attributes) |
void |
removeAllRoutes() |
void |
removeLink(int linkId) |
void |
removeProtectionSegment(int segmentId) |
void |
removeProtectionSegmentFromRouteBackupSegmentList(int segmentId,
int routeId) |
void |
removeRoute(int routeId) |
String |
toString() |
public void addLink(int originNodeId,
int destinationNodeId,
double capacityInErlangs,
double lengthInKm,
Map<String,String> attributes)
public void addProtectionSegment(double reservedBandwidth,
int[] sequenceOfLinks,
Map<String,String> attributes)
public void addProtectionSegmentToRouteBackupSegmentList(int segmentId,
int routeId)
public void addRoute(int demandId,
double trafficVolume,
int[] sequenceOfLinks,
Map<String,String> attributes)
public boolean isEmpty()
true if no action is defined. Otherwise, falsepublic void modifyLink(int linkId,
double capacityInErlangs,
Map<String,String> attributes)
public void modifyProtectionSegment(int segmentId,
double trafficVolume,
Map<String,String> attributes)
public void modifyRoute(int routeId,
double trafficVolume,
Map<String,String> attributes)
public void removeLink(int linkId)
public void removeProtectionSegment(int segmentId)
public void removeAllRoutes()
public boolean getAllRoutesRemoved()
public void removeProtectionSegmentFromRouteBackupSegmentList(int segmentId,
int routeId)
public void removeRoute(int routeId)
public Map<Integer,Set<Integer>> getAssignedSegmentsToRoutes()
public Map<Integer,Set<Integer>> getUnassignedSegmentsFromRoutes()
public Map<Integer,Pair<Double,Map<String,String>>> getModifiedLinks()
public Map<Integer,Pair<Double,Map<String,String>>> getModifiedProtectionSegments()
public Map<Integer,Pair<Double,Map<String,String>>> getModifiedRoutes()
public List<Quadruple<Pair<Integer,Integer>,Double,Double,Map<String,String>>> getNewLinks()
public List<Triple<Double,int[],Map<String,String>>> getNewProtectionSegments()
public List<Quadruple<Integer,Double,int[],Map<String,String>>> getNewRoutes()
public int[] getRemovedLinks()
public int[] getRemovedProtectionSegments()
public int[] getRemovedRoutes()
public String toString()
toString in class Object