|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.nist.antd.optical.AbstractObject
|
+--gov.nist.antd.optical.path.OpticalPath
The path is an end-to-end connection. It contains a set of optical channels. The more channels the path contains the bigger is the bandwidth.
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.
VERSION CONTROL
-------------------------------------------------------------------------
Name - YYYY/MM/DD - VERSION - ACTION
borchert - 2001/05/29 - 1.0 - Source created.
borchert - 2001/09/06 - Method getNoChannels published.
borchert - 2001/09/06 - 1.1 - Added isFailure. This method checks the
channels.
borchert - 2001/10/18 - 2.0 - Added the method configSwitches and
resetSwitches into OpticalPath.
- Added finalization method.
borchert - 2001/10/18 - Added method isConnected(lambda).
- Added toString().
rouil - 2002/02/14 - Complete documentation.
borchert - 2002/06/06 - 2.1 - Changed Reference from OpticalRoute to
OpticalConnection
rouil - 2002/06/17 - 2.2 - Deprecated getRoute, use getConnection
klink - 2002/09/26 - Fixed logical bug in isFailure()
| Field Summary | |
private int |
noChannels
Number of channels assigned to the optical path. |
private OpticalChannel[] |
opticalChannel
The list of channels in that path |
private OpticalConnection |
route
The Route this path belongs too. |
| Fields inherited from class gov.nist.antd.optical.AbstractObject |
INITIAL_ARRAY_SIZE |
| Constructor Summary | |
OpticalPath(OpticalConnection oRoute)
Default constructor. |
|
| Method Summary | |
void |
addOpticalChannel(OpticalChannel channelConnection)
Add an optical channel in this optical path |
boolean |
configSwitches()
Configures the switches for each Channel. |
protected java.lang.Object[] |
createArray(int size)
Creates an OpticalChannel array of the specified size. |
void |
finalize()
Reset all switches if necessary. |
double |
getBandwidth()
Return the bandwidth of the path |
OpticalConnection |
getConnection()
Determines the connection object of the path. |
int |
getNoChannels()
Returns the number of stored channels in this Route. |
OpticalChannel |
getOpticalChannel(int channelID)
Returns the specified channel that belongs to this path. |
OpticalChannel[] |
getOpticalChannels()
Returns a copy of the list of channels who belong to this path. |
OpticalConnection |
getRoute()
Deprecated. use getConnection |
boolean |
isFailure()
Determines if the Path is usable. |
boolean |
isProtection()
Informs if the path is used to protect an other path. |
void |
removeOpticalChannel(OpticalChannel channel)
Remove the given optical channel. |
boolean |
resetSwitches()
Reset the switches for each Channel. |
protected void |
setNoElements(int size)
Set the number of channels. |
java.lang.String |
toString()
Returns the information about this optical path, including all of the optical channels that this path contains. |
| Methods inherited from class gov.nist.antd.optical.AbstractObject |
addElement, clear, isElementOf, removeElement |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int noChannels
private OpticalChannel[] opticalChannel
private OpticalConnection route
| Constructor Detail |
public OpticalPath(OpticalConnection oRoute)
oRoute - The optical route this path belongs to.| Method Detail |
public void addOpticalChannel(OpticalChannel channelConnection)
channelConnection - The optical channel to add.public OpticalChannel[] getOpticalChannels()
public OpticalChannel getOpticalChannel(int channelID)
throws IllegalIDException
channelID - The id of the requested channel.
IllegalIDExceptionpublic void removeOpticalChannel(OpticalChannel channel)
channel - the channel to remove.public boolean isProtection()
protected java.lang.Object[] createArray(int size)
createArray in class AbstractObjectsize - The size of the channel array.
protected void setNoElements(int size)
setNoElements in class AbstractObjectsize - the new number of channels.public OpticalConnection getRoute()
public OpticalConnection getConnection()
public double getBandwidth()
public int getNoChannels()
public boolean isFailure()
public boolean configSwitches()
public boolean resetSwitches()
public void finalize()
finalize in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||