gov.nist.antd.optical.path
Class OpticalChannelSegment

java.lang.Object
  |
  +--gov.nist.antd.optical.path.OpticalChannelSegment

public class OpticalChannelSegment
extends java.lang.Object

This class represents a point-to-point connection.

 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

Field Summary
private  Lambda lambda
          The lambda that is used for this segment.
private  OpticalChannel opticalChannel
          The channel this segment belongs to.
 
Constructor Summary
OpticalChannelSegment(Lambda lambda)
          Creates an optical channel segment.
 
Method Summary
 void finalize()
          reset the reserved attribute in the lambda if not already done and delete the link to the lambda
 Lambda getLambda()
          Determines the used Lambda.
 OpticalChannel getOpticalChannel()
          Returns the optical channel this segment belongs to.
 void setLambda(Lambda lambda)
          Set the lambda used for this Segment.
 void setOpticalChannel(OpticalChannel channel)
          Set the optical channel this segment belongs to.
 java.lang.String toString()
          Returns the textual representation of the channel segment.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lambda

private Lambda lambda
The lambda that is used for this segment.


opticalChannel

private OpticalChannel opticalChannel
The channel this segment belongs to.

Constructor Detail

OpticalChannelSegment

public OpticalChannelSegment(Lambda lambda)
Creates an optical channel segment.

Parameters:
lambda - The lambda assigned for this segment.
Method Detail

getLambda

public Lambda getLambda()
Determines the used Lambda.

Returns:
The lambda used for this segment.

setLambda

public void setLambda(Lambda lambda)
               throws java.lang.NullPointerException
Set the lambda used for this Segment.

Parameters:
lambda - the used lambda
Throws:
java.lang.NullPointerException - if the lambda is null.

setOpticalChannel

public void setOpticalChannel(OpticalChannel channel)
                       throws java.lang.NullPointerException
Set the optical channel this segment belongs to.

Parameters:
channel - The channel of the segment.
Throws:
java.lang.NullPointerException - if the channell.

getOpticalChannel

public OpticalChannel getOpticalChannel()
Returns the optical channel this segment belongs to.

Returns:
The channel of the segment.

finalize

public void finalize()
reset the reserved attribute in the lambda if not already done and delete the link to the lambda

Overrides:
finalize in class java.lang.Object

toString

public java.lang.String toString()
Returns the textual representation of the channel segment.

Overrides:
toString in class java.lang.Object
Returns:
the textual representation.