|
||||||||||
| 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.util.AbstractAddDropConfigurator
|
+--gov.nist.antd.merlin.util.AutoConfigCtrl
This abstract class helps in creating a control protocol on top of OXCSwitch. It implements some mechanism to read addDropLamdbas and automatic generation.
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 java.lang.String |
SESSION_NAME
The name (oxcswitch) of this protocolsession in the network. |
| Fields inherited from class gov.nist.antd.merlin.util.AbstractAddDropConfigurator |
addLambdaIDs, addLambdas, dropLambdaIDs, dropLambdas |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
AutoConfigCtrl()
Default constructor |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configuration |
private void |
connectBidirectionalCtrlLambdas(OXCSwitch oxcSwitch,
Fiber fiber)
Connect all control lambdas in a fiber |
private void |
connectCtrLambda(OXCSwitch oxcSwitch,
Fiber fiber,
boolean input)
Connect all controllambdas in a fiber |
void |
init()
Initialization routine, called by the ProtocolGraph after instantiation. |
abstract boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Regular push that cannot be used with framing adaptation. |
| Methods inherited from class gov.nist.antd.merlin.util.AbstractAddDropConfigurator |
configAddDrop, getAddLambdaIDs, getAddLambdas, getDropLambdaIDs, getDropLambdas, setAddLambdas, setDropLambdas, toDML |
| 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 java.lang.String SESSION_NAME
| Constructor Detail |
public AutoConfigCtrl()
| 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 AbstractAddDropConfiguratorcfg - The DML configuration
com.renesys.raceway.DML.configException - if a configuration error occured
public void init()
throws ProtocolException
init in class AbstractAddDropConfiguratorProtocolException - if an error occured
private void connectCtrLambda(OXCSwitch oxcSwitch,
Fiber fiber,
boolean input)
oxcSwitch - The OXCSwitch that must connect the lambdas.fiber - The fiber we want to connect the control lambdasinput - indicate if the fiber is an input fiber
private void connectBidirectionalCtrlLambdas(OXCSwitch oxcSwitch,
Fiber fiber)
oxcSwitch - The OXCSwitch that must connect the lambdas.fiber - The fiber we want to connect the control lambdas
public abstract boolean push(ProtocolMessage message,
ProtocolSession fromSession)
throws ProtocolException
push in class AbstractAddDropConfiguratormessage - The message received.fromSession - The protocol session which sent the message.
ProtocolException - If a protocol session exception occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||