|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.ra.RoutingAlgBase<V,E>
bcds.phison.ra.ProtectionAlgBase<V,E>
public class ProtectionAlgBase<V,E>
Provides common functions and data structures for protection-aware routing algorithms.
Constructor Summary | |
---|---|
ProtectionAlgBase()
|
Method Summary | |
---|---|
void |
commitBackupPath(ConnectionInfo<V,E> cnx)
Calls ted.updateResidualCap to decrease the available capacity along the (current) backup path. |
Path<V,E> |
getBackupPath()
Returns the backup path found in the last call to run. |
boolean |
offersProtection()
Returns true. |
void |
setup(TED<V,E> ted,
Environ env)
Initializes this object. |
void |
uncommitBackupPath(ConnectionInfo<V,E> cnx)
Reversion of commitBackupPath(bcds.phison.ra.ConnectionInfo . |
Methods inherited from class bcds.phison.ra.RoutingAlgBase |
---|
buildPathFromParentNodes, commitWorkingPath, dumpState, getCost, getEnviron, getEnvParams, getName, getTED, getWorkingPath, setBackupPath, setRequest, setWorkingPath, topologyHasChanged, uncommitWorkingPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtectionAlgBase()
Method Detail |
---|
public void setup(TED<V,E> ted, Environ env)
setup
in class RoutingAlgBase<V,E>
public boolean offersProtection()
offersProtection
in class RoutingAlgBase<V,E>
public Path<V,E> getBackupPath()
getBackupPath
in class RoutingAlgBase<V,E>
public void commitBackupPath(ConnectionInfo<V,E> cnx)
commitBackupPath
in class RoutingAlgBase<V,E>
public void uncommitBackupPath(ConnectionInfo<V,E> cnx)
commitBackupPath(bcds.phison.ra.ConnectionInfo)
.
uncommitBackupPath
in class RoutingAlgBase<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |