|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.algorithm.AlgorithmTemplate
This class represents a template for withing algorithms. The algorithm writer has to implement the abstract execute method.
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.
| Field Summary | |
private boolean |
debug
Indicates if the algorithm is in the dwbug mode or not. |
private java.lang.String |
name
The name of the algorithm. |
| Fields inherited from interface gov.nist.antd.optical.algorithm.Algorithm |
ROUTING, RWA, UNKNOWN, WAVELENGTH |
| Constructor Summary | |
AlgorithmTemplate()
Default constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg,
Glass net)
Configure the Centralized Algorithm. |
java.lang.Object[] |
execute(Glass net,
OpticalConnection[] routes,
java.lang.Object[] parameter)
This method executes the algorithm. |
abstract java.util.Vector |
execute(Glass net,
java.util.Vector listOfRoutes,
java.util.Vector parameter)
This method executes the algorithm. |
java.lang.String |
getName()
Returns the name of the algorithm. |
byte |
getType()
Returns the algorithms type. |
boolean |
isDebug()
Indicates if the algorithm is in the debug mode or not. |
void |
setDebug(boolean newValue)
Set the debug mode. |
void |
setName(java.lang.String newName)
Set the name of the algorithm. |
java.lang.String |
toDML()
This method generates the DML representation of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String name
private boolean debug
| Constructor Detail |
public AlgorithmTemplate()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg,
Glass net)
throws com.renesys.raceway.DML.configException
config in interface Algorithmcfg - configurationnet - The OpNet that contains the topology.
com.renesys.raceway.DML.configException - when a configuration exception occurs.public final java.lang.String getName()
getName in interface Algorithmpublic void setName(java.lang.String newName)
newName - The name of the algorithm.public boolean isDebug()
public void setDebug(boolean newValue)
newValue - Defines if the algorihtm is in the debug mode or not.public java.lang.String toDML()
toDML in interface DMLDump
public java.lang.Object[] execute(Glass net,
OpticalConnection[] routes,
java.lang.Object[] parameter)
throws AlgorithmException
execute in interface Algorithmnet - the topologies network.routes - An Array of routes.parameter - An Array of parameters for the algorithm.
AlgorithmException - An AlgorithmException occured.
public abstract java.util.Vector execute(Glass net,
java.util.Vector listOfRoutes,
java.util.Vector parameter)
throws AlgorithmException
execute in interface Algorithmnet - the topologies network.listOfRoutes - The vector containing the routes.parameter - not used here.
AlgorithmException - An AlgorithmException occured.public byte getType()
getType in interface Algorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||