|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.Net.NIC
|
+--SSF.Net._NIC
|
+--gov.nist.antd.optical.ONIC
Optical Network Interface Card. This class is the optical representation to the NIC in SSFNet. The OXC and optical routers use it. This class is primary for the use with a Router to provide optical capabilities and with an OXC.
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.
| Nested Class Summary |
| Nested classes inherited from class SSF.Net._NIC |
|
| Field Summary | |
private double |
ber
The Bit Error Rate. |
protected static boolean |
DEBUG
For debug purposes of all ONICS (use in dml: DEBUG true). |
private java.util.Vector |
ipAddresses
List of IP address for this ONIC. |
private double |
jitter
To avoid peacks during the transmission. |
| Fields inherited from class SSF.Net._NIC |
defaultFailureModuleName, inConfiguration, inPacketBytes, outPacketBytes, outPacketCount, prevInPacketBytes, prevOutPacketBytes, prevOutPacketCount |
| Fields inherited from class SSF.Net.NIC |
attachedProtocol, BIT_RATE, buffersize, CHECK_FOR_SYNS, COUNT_FLAKY_DROPS, DEFAULT_BIT_RATE, DEFAULT_BUFFERSIZE, DEFAULT_DELAY, DEFAULT_FLAKINESS, DELAY, FLAKINESS, flakyDrops, flakyGen, FREQUENCY, ID, ifaceUp, IN, ipAddr, isVirtual, link_hw, maskBits, OUT, queueManager, queueMonitor, receiver |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
ONIC(ProtocolGraph g,
int use_id)
Default constructor. |
|
| Method Summary | |
protected void |
checkLightStatus(FailureInformation component)
Deprecated. use the method checkLinkStatus (FailureInformation) instead. |
protected void |
checkLinkStatus(FailureInformation component)
This method will be called to detect a failure or a recovery of components. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure the ONIC. |
double |
getAvailableBandwidth()
Determines the available bandwith that can be used to send a package. |
double |
getBer()
Get the Bite Error Rate of this ONIC. |
long |
getBufferSize()
return the size of the buffer. |
double |
getDelay()
Get the Delay of this ONIC in seconds. |
Fiber |
getFiber(int id)
Returns the specified fiber. |
Fiber |
getFiberofPort(int port)
Returns the fiber that has this port number. |
Fiber[] |
getFibers()
Returns all fibers. |
int |
getID()
Get the Id of this ONIC. |
Fiber[] |
getInFibers()
Returns all incomming fibers of this ONIC. |
int |
getIP()
Gives the IP adress of the ONIC |
double |
getJitter()
Get the Jitter of this ONIC. |
OpticalLinkLayer |
getLinkLayer()
get the optical link layer attached to this ONIC |
double |
getMaxBandwidth()
Determines the maximum bandwith that can be used to send a package. |
ONIC |
getOppositeONIC()
Determine the ONIC on the other side of the link. |
Fiber[] |
getOutFibers()
Return all outgoing fibers. |
packetQueue |
getPacketQueue()
Return the queue of this ONIC |
java.util.Vector |
getVectorOfInFibers()
Returns all incomming fibers of this ONIC. |
java.util.Vector |
getVectorOfOutFibers()
Returns all outgoing fibers of this ONIC. |
void |
init()
Initializes the ONIC. |
java.lang.String |
ipAddrString()
Return the complete CIDR-compliant address of this NIC. |
boolean |
isInFiber(Fiber fiber)
Determines if the fiber is an input fiber. |
boolean |
isInFiber(int id)
Determines if the fiber is an input fiber. |
boolean |
isOutFiber(Fiber fiber)
Determines if the fiber is an output fiber. |
boolean |
isOutFiber(int id)
Determines if the fiber is an output fiber. |
boolean |
isOwnIP(int ip)
Determines if the ip is own by this ONIC. |
boolean |
isPortIDinUse(int portID)
Determines if the given portID is used in this ONIC. |
private void |
notifyONIC()
Notifies the opposite ONIC for the failed ONIC. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Similar to SSF. |
void |
setBer(double ber)
Set the Bite Error Rate |
void |
setDelay(double delay)
Set the delay in seconds. |
void |
setFailure(boolean newValue)
Set and reset the failure value. |
static void |
setGlobalDebug(boolean globalDebug)
Set the debug-mode of all ONICs. |
void |
setID(int id)
Set the ID. |
void |
setJitter(double jitter)
Set the jitter for this ONIC. |
java.lang.String |
toString()
Return information about this ONIC. |
| Methods inherited from class SSF.Net.NIC |
bitrate, close, delay, down, drop_flaky, drop, frequency, interfaceIdentifier, isUp, open, up |
| Methods inherited from class SSF.OS.ProtocolSession |
closed, debugIdentifier, inGraph, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static boolean DEBUG
private double ber
private double jitter
private java.util.Vector ipAddresses
| Constructor Detail |
public ONIC(ProtocolGraph g,
int use_id)
throws ProtocolException
g - The protocol graph attached to this ONIC.use_id - The id to use for this ONIC.
ProtocolException| Method Detail |
public static final void setGlobalDebug(boolean globalDebug)
globalDebug - Set the global debug mode.
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 _NICcfg - The configuration object.
com.renesys.raceway.DML.configExceptionpublic double getBer()
public double getDelay()
public int getID()
public double getJitter()
public java.lang.String ipAddrString()
ipAddrString in class NIC
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
push in class _NICmessage - The message to push.fromSession - The sender of the message.
public void setBer(double ber)
ber - The new value.public void setDelay(double delay)
delay - The new value.public void setID(int id)
id - The id.public void setJitter(double jitter)
jitter - The new value.public void setFailure(boolean newValue)
setFailure in class _NICnewValue - the new failure value.public OpticalLinkLayer getLinkLayer()
public java.lang.String toString()
toString in class NICpublic Fiber[] getInFibers()
public java.util.Vector getVectorOfInFibers()
public Fiber[] getOutFibers()
public java.util.Vector getVectorOfOutFibers()
public Fiber getFiber(int id)
id - the id of the fiber.
public Fiber getFiberofPort(int port)
port - The port number of the requested fiber.
public Fiber[] getFibers()
public boolean isInFiber(int id)
id - the id of the fiber.
public boolean isInFiber(Fiber fiber)
fiber - the fiber we want to check the direction.
public boolean isOutFiber(int id)
id - the id of the fiber.
public boolean isOutFiber(Fiber fiber)
fiber - the fiber we want to check the direction.
public boolean isOwnIP(int ip)
ip - the IP adress to check.
public int getIP()
public boolean isPortIDinUse(int portID)
throws IllegalIDException
portID - the portID which will be looked for.
IllegalIDException - the given id is an illegal id.public long getBufferSize()
public double getMaxBandwidth()
public double getAvailableBandwidth()
protected void checkLightStatus(FailureInformation component)
component - The failed or recovered module.protected void checkLinkStatus(FailureInformation component)
checkLinkStatus in class _NICcomponent - The failed or recovered module.private void notifyONIC()
public ONIC getOppositeONIC()
public void init()
throws ProtocolException
init in class _NICProtocolException - when an error occured.public packetQueue getPacketQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||