|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--gov.nist.antd.merlin.generator.event.TopologyManipulator
This protocolSession is used to manipulate the topolgy of a node or the attached links.
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 | |
static byte |
CONVERTER
Constante to change the convertion capability. |
static byte |
DELAY
Constante to change the delay of an optical link |
static byte |
DISTANCE
Constante to change the distance of an optical link |
static byte |
FAILURE
Constante to change the failure attribute in OXCEdgeRouter, OXC, link fiber or lambda. |
EventGenerator |
generator
The EventGenerator attached to this Manipulator |
static byte |
NO_ACTION
Constante for doing nothing |
static byte |
NO_CONVERTERS
Constante to change the number of converters. |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
TopologyManipulator()
Default constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure this ProtocolSession. |
boolean |
createEvent(EventParameter event)
Create an event according to the parameter. |
void |
execute(EventParameter event)
Execute the action associated to the given event |
EventGenerator |
getGenerator()
Return the EventGenerator. |
void |
init()
Initialise the event generator |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
This ProtocolSession is unable to send or receive messages. |
void |
setGenerator(EventGenerator generator)
Set the EventGenerator. |
java.lang.String |
toDML()
This method generates the DML representation of this class. |
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte NO_ACTION
public static final byte FAILURE
public static final byte CONVERTER
public static final byte NO_CONVERTERS
public static final byte DISTANCE
public static final byte DELAY
public EventGenerator generator
| Constructor Detail |
public TopologyManipulator()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncfg - The DML configuration
com.renesys.raceway.DML.configException - when a configuration error occured
public void init()
throws ProtocolException
init in class ProtocolSessionProtocolException - when a protocol error occured in the generator
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
throws ProtocolException
push in class ProtocolSessionmessage - The message received.fromSession - The ProtocolSession that pushed the message.
ProtocolException - when a protocol error occuredpublic boolean createEvent(EventParameter event)
event - The parameter for the event
public void execute(EventParameter event)
event - The event to executepublic void setGenerator(EventGenerator generator)
generator - The EventGenerator.public EventGenerator getGenerator()
public java.lang.String toDML()
toDML in interface DMLDump
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||