Package ons.util
Class PseudoControlPlane2
java.lang.Object
ons.util.PseudoControlPlane2
- All Implemented Interfaces:
ControlPlaneForRA
public class PseudoControlPlane2 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 static boolean
PCP_accept
static boolean
PCP_erase
protected MyStatistics
st
-
Constructor Summary
Constructors Constructor Description PseudoControlPlane2(ControlPlaneForRA cp, RA rsa)
-
Method Summary
Modifier and Type Method Description boolean
acceptBatch(long id, LightPath[][] lightpaths, int[] rate)
boolean
acceptBulkData(long id, LightPath[] lightpaths, int rate)
boolean
acceptFlow(long id, LightPath[] lightpaths)
boolean
acceptFlow(long id, Path[] paths, int[] bws)
boolean
acceptFlow(long id, Path[] paths, int[] bws, boolean reservedProtect)
boolean
acceptFlow(long id, Path[] primaryPaths, int[] primaryBWS, Path[] backupPaths, int[] backupBWS, boolean reservedProtect, boolean shared)
boolean
addStaticLightPathProtect(LightPath[] lightpaths, boolean backup, boolean reservedProtect)
boolean
addStaticLightPathProtect(Path[] primaryPaths, Path[] backupPaths, boolean reservedProtect)
boolean
blockBatch(long id)
boolean
blockBulkData(long id)
boolean
blockFlow(long id)
EONLightPath
createCandidateEONLightPath(int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation)
EONLightPath
createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation)
EONLightPath
createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, java.lang.String typeProtection)
WDMLightPath
createCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths)
WDMLightPath
createCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)
double
getCurrentTime()
Flow
getFlow(long id)
Flow[]
getFlows(LightPath lightpath)
int
getLightpathFlowCount(long id)
java.util.Map<Flow,MultiPath>
getMappedFlowsMultiPath()
java.util.Map<Flow,MultiPathProtect>
getMappedFlowsMultiPathProtect()
java.util.Map<Flow,Path>
getMappedFlowsSinglePath()
MultiPath
getMultiPath(Flow flow)
Path
getPath(Flow flow)
PhysicalTopology
getPT()
VirtualTopology
getVT()
boolean
rerouteFlow(long id, LightPath[] lightpaths)
-
Field Details
-
PCP_accept
public static boolean PCP_accept -
PCP_erase
public static boolean PCP_erase -
st
-
-
Constructor Details
-
Method Details
-
acceptFlow
- Specified by:
acceptFlow
in interfaceControlPlaneForRA
-
blockFlow
public boolean blockFlow(long id)- Specified by:
blockFlow
in interfaceControlPlaneForRA
-
rerouteFlow
- Specified by:
rerouteFlow
in interfaceControlPlaneForRA
-
getFlow
- Specified by:
getFlow
in interfaceControlPlaneForRA
-
getPath
- Specified by:
getPath
in interfaceControlPlaneForRA
-
getLightpathFlowCount
public int getLightpathFlowCount(long id)- Specified by:
getLightpathFlowCount
in interfaceControlPlaneForRA
-
getMappedFlowsSinglePath
- Specified by:
getMappedFlowsSinglePath
in interfaceControlPlaneForRA
-
getPT
- Specified by:
getPT
in interfaceControlPlaneForRA
-
getVT
- Specified by:
getVT
in interfaceControlPlaneForRA
-
createCandidateWDMLightPath
- Specified by:
createCandidateWDMLightPath
in interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation)- Specified by:
createCandidateEONLightPath
in interfaceControlPlaneForRA
-
acceptFlow
- Specified by:
acceptFlow
in interfaceControlPlaneForRA
-
getMultiPath
- Specified by:
getMultiPath
in interfaceControlPlaneForRA
-
getMappedFlowsMultiPath
- Specified by:
getMappedFlowsMultiPath
in interfaceControlPlaneForRA
-
acceptFlow
-
getMappedFlowsMultiPathProtect
- Specified by:
getMappedFlowsMultiPathProtect
in interfaceControlPlaneForRA
-
addStaticLightPathProtect
public boolean addStaticLightPathProtect(Path[] primaryPaths, Path[] backupPaths, boolean reservedProtect)- Specified by:
addStaticLightPathProtect
in interfaceControlPlaneForRA
-
addStaticLightPathProtect
public boolean addStaticLightPathProtect(LightPath[] lightpaths, boolean backup, boolean reservedProtect)- Specified by:
addStaticLightPathProtect
in interfaceControlPlaneForRA
-
createCandidateWDMLightPath
public WDMLightPath createCandidateWDMLightPath(int src, int dst, int[] links, int[] wavelengths, java.lang.String typeProtection)- Specified by:
createCandidateWDMLightPath
in interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int firstSlot, int lastSlot, int modulation, java.lang.String typeProtection)- Specified by:
createCandidateEONLightPath
in interfaceControlPlaneForRA
-
acceptFlow
public boolean acceptFlow(long id, Path[] primaryPaths, int[] primaryBWS, Path[] backupPaths, int[] backupBWS, boolean reservedProtect, boolean shared)- Specified by:
acceptFlow
in interfaceControlPlaneForRA
-
acceptBulkData
- Specified by:
acceptBulkData
in interfaceControlPlaneForRA
-
blockBulkData
public boolean blockBulkData(long id)- Specified by:
blockBulkData
in interfaceControlPlaneForRA
-
acceptBatch
- Specified by:
acceptBatch
in interfaceControlPlaneForRA
-
blockBatch
public boolean blockBatch(long id)- Specified by:
blockBatch
in interfaceControlPlaneForRA
-
getCurrentTime
public double getCurrentTime()- Specified by:
getCurrentTime
in interfaceControlPlaneForRA
-
createCandidateEONLightPath
public EONLightPath createCandidateEONLightPath(int src, int dst, int[] links, int[] cores, int firstSlot, int lastSlot, int modulation)- Specified by:
createCandidateEONLightPath
in interfaceControlPlaneForRA
-
getFlows
- Specified by:
getFlows
in interfaceControlPlaneForRA
-