DRCL J-Sim API

drcl.inet.protocol.cbt
Class CBTState

java.lang.Object
  extended bydrcl.inet.protocol.cbt.CBTState

public class CBTState
extends java.lang.Object


Field Summary
 long core
           
 long group
           
 CBTInterface[] ifs
           
 int ntries
           
 int state
           
 int upstreamIf
           
 
Constructor Summary
CBTState()
           
CBTState(long group_, long core_)
           
 
Method Summary
 CBTInterface addIf(int if_, boolean upstream_, boolean broadcast_, boolean hostIf_, boolean routerIf_, java.lang.Object extension_)
          Adds an interface.
 boolean anyDownstreamIf()
          Returns true if the state includes at least one down stream interface.
 CBTInterface getIf(int if_)
          Retrieves an interface.
 CBTInterface getUpstreamIf()
          Retrieves the "upstream" interface.
 boolean isDownstreamIf(int if_)
          Returns true if the interface exists and is a downstream.
 boolean isUptreamIf(int if_)
          Returns true if the interface exists and is the upstream.
 void removeAllIfs()
           
 void removeIf(int if_)
          Removes an interface.
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

state

public int state

group

public long group

core

public long core

ifs

public CBTInterface[] ifs

upstreamIf

public int upstreamIf

ntries

public int ntries
Constructor Detail

CBTState

public CBTState()

CBTState

public CBTState(long group_,
                long core_)
Method Detail

reset

public void reset()

removeAllIfs

public void removeAllIfs()

addIf

public CBTInterface addIf(int if_,
                          boolean upstream_,
                          boolean broadcast_,
                          boolean hostIf_,
                          boolean routerIf_,
                          java.lang.Object extension_)
Adds an interface.


removeIf

public void removeIf(int if_)
Removes an interface.


getIf

public CBTInterface getIf(int if_)
Retrieves an interface.


getUpstreamIf

public CBTInterface getUpstreamIf()
Retrieves the "upstream" interface.


anyDownstreamIf

public boolean anyDownstreamIf()
Returns true if the state includes at least one down stream interface.


isDownstreamIf

public boolean isDownstreamIf(int if_)
Returns true if the interface exists and is a downstream.


isUptreamIf

public boolean isUptreamIf(int if_)
Returns true if the interface exists and is the upstream.


toString

public java.lang.String toString()

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~