|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.protocol.util.LinkStateTable
This class contains the linkstate information of the connected links.
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 Host |
host
The host this table is assigned to. |
private java.util.Hashtable |
linkHashTable
Contains the hashtables for each link. |
| Constructor Summary | |
LinkStateTable(Host ownerHost)
Creates and initializes the linkstatetable. |
|
| Method Summary | |
java.util.Vector |
addFailure(Fiber failedFiber)
Add all Lambdas in this fiber as failed. |
boolean |
addFailure(Lambda failedLambda)
Add the given lambda to its link table. |
java.util.Vector |
addFailure(OpticalLink failedLink)
Add all Lambdas in this Link as failed. |
protected java.util.Vector |
getLambdaVectorForLink(OpticalLink link)
Retruns the Vector containing the linkstate information for the specific link. |
boolean |
isRegisteredAsFailed(Fiber fiber)
Returns if this fiber is registered as failed. |
boolean |
isRegisteredAsFailed(Lambda lambda)
Returns if the Lambda is already registered as failed. |
boolean |
isRegisteredAsFailed(OpticalLink link,
boolean onlyIncoming)
Returns if this link is registered as failed. |
java.util.Vector |
removeFailure(Fiber fiber)
Only not real failed lambdas of the fiber will be removed. |
boolean |
removeFailure(Lambda lambda)
Removes the given lambda from the failure table if it exists. |
java.util.Vector |
removeFailure(OpticalLink link)
Only not real failed lambdas of the link will be removed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.Hashtable linkHashTable
private Host host
| Constructor Detail |
public LinkStateTable(Host ownerHost)
throws java.lang.NullPointerException
java.lang.NullPointerException - if the host is null.| Method Detail |
protected java.util.Vector getLambdaVectorForLink(OpticalLink link)
public boolean addFailure(Lambda failedLambda)
failedLambda - the failed Lambda. It can be logical or physical
failed.
public java.util.Vector addFailure(Fiber failedFiber)
failedFiber - the fiber that failed. It can be logical or physical
failed.
public java.util.Vector addFailure(OpticalLink failedLink)
failedLink - the link that failed. It can be logical or physical
failed.
public boolean removeFailure(Lambda lambda)
lambda - the lambda that has to be removed.
public java.util.Vector removeFailure(Fiber fiber)
fiber - The fiber whose lambdas have to be removed from the failure
table.
isRegisteredAsFailed(Fiber)public java.util.Vector removeFailure(OpticalLink link)
link - The link whose lambdas have to be removed from the failure
table
LinkStateTable#isRegisteredAsFailed(OpticalLink)public boolean isRegisteredAsFailed(Lambda lambda)
lambda - the lambda that has to be checked.
public boolean isRegisteredAsFailed(Fiber fiber)
fiber - the fiber that has to be tested.
public boolean isRegisteredAsFailed(OpticalLink link,
boolean onlyIncoming)
onlyIncoming
link - the link that has to be tested.onlyIncoming - true = check only incoming fibers, false = check all
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||