|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.util.BackupUtil
This class contains some tools to call a backup path or route.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Constructor Summary | |
private |
BackupUtil()
private constructor to avoid instantiation |
| Method Summary | |
private static void |
checkRouteCompatibility(OpticalConnection route,
OpticalConnection repRoute)
Check if the replacement can replace parts of the path. |
static void |
filterRoute(OpticalConnection route)
Filter the bundles if this route. |
static OpticalConnection |
getBackupOfLink(int linkID,
QualityOfService qos,
Glass net)
Call the backup of this link. |
static OpticalConnection |
getBackupOfLink(OpticalConnection route,
QualityOfService qos)
Get the backup for this route. |
static OpticalConnection |
getBackupOfLink(OpticalLink link,
QualityOfService qos)
Call the backup of this link. |
static OpticalConnection |
getBackupOfRoute(int routeID,
QualityOfService qos,
Glass net)
Get the backup for this route. |
static OpticalConnection |
getBackupOfRoute(OpticalConnection route,
QualityOfService qos)
Get the backup for this route. |
static void |
mergeRoutes(OpticalConnection route1,
OpticalConnection route2)
Merge two routes without merging their path but use the current path to get information |
static void |
replaceSegment(OpticalConnection route,
OpticalConnection repRoute)
Replace a segment or a list of segments in the optical route. |
static void |
restoreLink(OpticalConnection route,
OpticalLink link,
java.util.Vector backup)
Update the possibles routes of the given OpticalConnection by changing the failed link by the backup links |
static java.util.Vector[] |
restoreLink(java.util.Vector bundles,
OpticalLink link,
java.util.Vector backup)
Update the possibles routes of the Vector of PtPBundle by changing the failed link by the backup links |
(package private) static OpticalConnection |
runAlgorithms(OpticalConnection oRoute)
Execute the algorithms |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private BackupUtil()
| Method Detail |
public static OpticalConnection getBackupOfLink(int linkID,
QualityOfService qos,
Glass net)
linkID - The ID of the OpticalLink that failed.qos - The Quality Of Service of the backup.net - The OpNet that contains the link.
public static OpticalConnection getBackupOfLink(OpticalLink link,
QualityOfService qos)
link - The OpticalLink that failed.qos - The Quality Of Service of the backup.
public static OpticalConnection getBackupOfLink(OpticalConnection route,
QualityOfService qos)
route - The OpticalConnection we want the backupqos - The QualityOfService of the backup
public static OpticalConnection getBackupOfRoute(OpticalConnection route,
QualityOfService qos)
route - The OpticalConnection we want the backupqos - The QualityOfService of the backup
public static OpticalConnection getBackupOfRoute(int routeID,
QualityOfService qos,
Glass net)
routeID - The ID of the OpticalConnection we want the backup.qos - The QualityOfService of the backup.net - The OpNet that contains the information.
static OpticalConnection runAlgorithms(OpticalConnection oRoute)
oRoute - The OpticalConnection to backup
public static void replaceSegment(OpticalConnection route,
OpticalConnection repRoute)
throws ReplacementException
route - Te route needs a section replacedrepRoute - The replacement route
ReplacementException - The replacement could not made
private static void checkRouteCompatibility(OpticalConnection route,
OpticalConnection repRoute)
throws ReplacementException
route - The original route.repRoute - The replacement route.
ReplacementException - Occurs if the check does not succeed.
public static void restoreLink(OpticalConnection route,
OpticalLink link,
java.util.Vector backup)
route - The OpticalConnection to restorelink - The link which failedbackup - The Vector of links to use for backup
public static java.util.Vector[] restoreLink(java.util.Vector bundles,
OpticalLink link,
java.util.Vector backup)
bundles - The list of links that must replace the given link.link - The link which failedbackup - The Vector of links to use for backup
public static void mergeRoutes(OpticalConnection route1,
OpticalConnection route2)
route1 - The original routeroute2 - The route to integratepublic static void filterRoute(OpticalConnection route)
route - The OpticalConnection that must be filtered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||