Package ons.util
Class PseudoControlPlane
java.lang.Object
ons.util.PseudoControlPlane
- All Implemented Interfaces:
ControlPlaneForRA
public class PseudoControlPlane extends java.lang.Object implements ControlPlaneForRA
This class is designed only for use by adaptive modulation models that use RA
class in its implementation. This class have specific differences in several
methods, pay attention.
-
Field Summary
Fields Modifier and Type Field Description protected MyStatisticsst -
Constructor Summary
Constructors Constructor Description PseudoControlPlane(ControlPlaneForRA cp, RA rsa) -
Method Summary
Modifier and Type Method Description booleanacceptBatch(long id, LightPath[][] lightpaths, int[] rate)booleanacceptBulkData(long id, LightPath[] lightpaths, int rate)booleanacceptFlow(long id, LightPath[] lightpaths)booleanacceptFlow(long id, Path[] paths, int[] bws)booleanacceptFlow(long id, Path[] paths, int[] bws, boolean reservedProtect)booleanacceptFlow(long id, Path[] primaryPaths, int[] primaryBWS, Path[] backupPaths, int[] backupBWS, boolean reservedProtect, boolean shared)booleanaddStaticLightPathProtect(LightPath[] lightpaths, boolean backup, boolean reservedProtect)booleanaddStaticLightPathProtect(Path[] primaryPaths, Path[] backupPaths, boolean reservedProtect)booleanblockBatch(long id)booleanblockBulkData(long id)booleanblockFlow(long id)EONLightPathcreateCandidateEONLightPath(int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation)EONLightPathcreateCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation)EONLightPathcreateCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, java.lang.String typeProtection)WDMLightPathcreateCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths)WDMLightPathcreateCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)doublegetCurrentTime()FlowgetFlow(long id)Flow[]getFlows(LightPath lightpath)intgetLightpathFlowCount(long id)java.util.Map<Flow,MultiPath>getMappedFlowsMultiPath()java.util.Map<Flow,MultiPathProtect>getMappedFlowsMultiPathProtect()java.util.Map<Flow,Path>getMappedFlowsSinglePath()MultiPathgetMultiPath(Flow flow)PathgetPath(Flow flow)PhysicalTopologygetPT()VirtualTopologygetVT()booleanrerouteFlow(long id, LightPath[] lightpaths)
-
Field Details
-
Constructor Details
-
Method Details
-
acceptFlow
- Specified by:
acceptFlowin interfaceControlPlaneForRA
-
blockFlow
public boolean blockFlow(long id)- Specified by:
blockFlowin interfaceControlPlaneForRA
-
rerouteFlow
- Specified by:
rerouteFlowin interfaceControlPlaneForRA
-
getFlow
- Specified by:
getFlowin interfaceControlPlaneForRA
-
getPath
- Specified by:
getPathin interfaceControlPlaneForRA
-
getLightpathFlowCount
public int getLightpathFlowCount(long id)- Specified by:
getLightpathFlowCountin interfaceControlPlaneForRA
-
getMappedFlowsSinglePath
- Specified by:
getMappedFlowsSinglePathin interfaceControlPlaneForRA
-
getPT
- Specified by:
getPTin interfaceControlPlaneForRA
-
getVT
- Specified by:
getVTin interfaceControlPlaneForRA
-
createCandidateWDMLightPath
- Specified by:
createCandidateWDMLightPathin interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation)- Specified by:
createCandidateEONLightPathin interfaceControlPlaneForRA
-
acceptFlow
- Specified by:
acceptFlowin interfaceControlPlaneForRA
-
getMultiPath
- Specified by:
getMultiPathin interfaceControlPlaneForRA
-
getMappedFlowsMultiPath
- Specified by:
getMappedFlowsMultiPathin interfaceControlPlaneForRA
-
acceptFlow
-
getMappedFlowsMultiPathProtect
- Specified by:
getMappedFlowsMultiPathProtectin interfaceControlPlaneForRA
-
addStaticLightPathProtect
public boolean addStaticLightPathProtect(Path[] primaryPaths, Path[] backupPaths, boolean reservedProtect)- Specified by:
addStaticLightPathProtectin interfaceControlPlaneForRA
-
addStaticLightPathProtect
public boolean addStaticLightPathProtect(LightPath[] lightpaths, boolean backup, boolean reservedProtect)- Specified by:
addStaticLightPathProtectin interfaceControlPlaneForRA
-
createCandidateWDMLightPath
public WDMLightPath createCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)- Specified by:
createCandidateWDMLightPathin interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, java.lang.String typeProtection)- Specified by:
createCandidateEONLightPathin interfaceControlPlaneForRA
-
acceptFlow
public boolean acceptFlow(long id, Path[] primaryPaths, int[] primaryBWS, Path[] backupPaths, int[] backupBWS, boolean reservedProtect, boolean shared)- Specified by:
acceptFlowin interfaceControlPlaneForRA
-
acceptBulkData
- Specified by:
acceptBulkDatain interfaceControlPlaneForRA
-
blockBulkData
public boolean blockBulkData(long id)- Specified by:
blockBulkDatain interfaceControlPlaneForRA
-
acceptBatch
- Specified by:
acceptBatchin interfaceControlPlaneForRA
-
blockBatch
public boolean blockBatch(long id)- Specified by:
blockBatchin interfaceControlPlaneForRA
-
getCurrentTime
public double getCurrentTime()- Specified by:
getCurrentTimein interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation)- Specified by:
createCandidateEONLightPathin interfaceControlPlaneForRA
-
getFlows
- Specified by:
getFlowsin interfaceControlPlaneForRA
-