gov.nist.antd.ssf.event.script
Class DefaultFiberEvent

java.lang.Object
  |
  +--gov.nist.antd.ssf.event.script.ScriptEvent
        |
        +--gov.nist.antd.ssf.event.script.DefaultFiberEvent
All Implemented Interfaces:
DMLDump

public class DefaultFiberEvent
extends ScriptEvent

This class configures a ScriptEvent for a fiber.

 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.

Author:
borchert
, rouil , gallo

Field Summary
static byte FAILURE
          constant value to specify that the action is to modify the attribute failure.
 
Fields inherited from class gov.nist.antd.ssf.event.script.ScriptEvent
NOACTION
 
Constructor Summary
DefaultFiberEvent(EventManager manager)
          Default constructor
 
Method Summary
 void config(EventManager manager, Glass net, com.renesys.raceway.DML.Configuration cfg)
          Configure the event from de DML file
 void execute()
          Execute the event
 java.lang.String toDML()
          Return a String that represents the DML configuration of this event
 
Methods inherited from class gov.nist.antd.ssf.event.script.ScriptEvent
cancel, getActionValue, getEventManager, getInfo, getTime, getType, init, setActionValue, setEventManager, setInfo, setTime, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAILURE

public static final byte FAILURE
constant value to specify that the action is to modify the attribute failure.

See Also:
Constant Field Values
Constructor Detail

DefaultFiberEvent

public DefaultFiberEvent(EventManager manager)
Default constructor

Parameters:
manager - The EventManager that will handle the event.
Method Detail

config

public void config(EventManager manager,
                   Glass net,
                   com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Configure the event from de DML file

Overrides:
config in class ScriptEvent
Parameters:
manager - The EventManager that will handle the event.
net - The net That contains the topology
cfg - The DML configuration
Throws:
com.renesys.raceway.DML.configException - if a configuration error occurs

execute

public void execute()
Execute the event

Specified by:
execute in class ScriptEvent

toDML

public java.lang.String toDML()
Return a String that represents the DML configuration of this event

Returns:
The DML configuration