|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.optical.SwitchingTable
This class represent the SwitchingTable. It is used only by the OXCSwitch.
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 java.util.Hashtable |
inTable
HashTable. |
private java.util.Hashtable |
outTable
HashTable. |
private OXCSwitch |
oxcSwitch
The OXCSwitch that owns this switching table. |
| Constructor Summary | |
SwitchingTable(OXCSwitch oxcSwitch)
Default constructor. |
|
| Method Summary | |
void |
connect(LambdaInterface inLambda,
LambdaInterface outLambda)
connect two lambdas. |
void |
disconnect(LambdaInterface inLambda,
LambdaInterface outLambda)
Command sent from the router to the OXC switch requesting that it disconnect the output lambda from the connected input lambda. |
int[][] |
getConnectionsInfo()
Return the list of the connections of switched lambdas only. |
LambdaInterface |
getInLambda(LambdaInterface outLambda)
Find the connected input lambda for the output lambda. |
java.util.Enumeration |
getInLambdas()
Return all the input lambdas of this OXC (AddDrop included). |
LambdaInterface |
getOutLambda(LambdaInterface inLambda)
Find the connected output lambda for the input lambda. |
java.util.Enumeration |
getOutLambdas()
Return all the output lambdas of this OXC (AddDrop included). |
OXCSwitch |
getOxcSwitch()
Return the OxcSwitch that uses this switching table. |
void |
printInfos()
Print the table of the connections |
void |
setOxcSwitch(OXCSwitch oxcSwitch)
Set the OXCSwitch that will use this switching table. |
java.lang.String |
toString()
Returns the table as String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private OXCSwitch oxcSwitch
private java.util.Hashtable inTable
private java.util.Hashtable outTable
| Constructor Detail |
public SwitchingTable(OXCSwitch oxcSwitch)
oxcSwitch - The OXCSwitch that manipulates this table.| Method Detail |
public OXCSwitch getOxcSwitch()
public void setOxcSwitch(OXCSwitch oxcSwitch)
oxcSwitch - The OXCSwitch that manipulates this table.
public void connect(LambdaInterface inLambda,
LambdaInterface outLambda)
inLambda - The input lambdaoutLambda - The output lambda
public void disconnect(LambdaInterface inLambda,
LambdaInterface outLambda)
inLambda - The input lambdaoutLambda - The output lambda.public LambdaInterface getOutLambda(LambdaInterface inLambda)
inLambda - The lambda we want to have the connected output.
public LambdaInterface getInLambda(LambdaInterface outLambda)
outLambda - The lambda we want to have the connected input.
public java.util.Enumeration getInLambdas()
public java.util.Enumeration getOutLambdas()
public int[][] getConnectionsInfo()
public java.lang.String toString()
toString in class java.lang.Objectpublic void printInfos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||