All Packages Class Hierarchy This Package Previous Next Index
Class calypso.core.atmswitch.VCPoint
java.lang.Object
|
+----calypso.core.atmswitch.VCPoint
- public class VCPoint
- extends Object
Representation of single virtual channel connection point in an ATM
switch.
With a connection point we mean some virtual channel in some port of
the ATM switch. So, to define virtual channel connection point we need
to define port number, VPI and VCI.
Users of this switch control package can create new points, which are
presented as VCPoint objects, by calling createVCPoint-method of
Switch class. The method returns a VCPoint object representing the
new point. Users can operate on these connection points using the
methods provided by this class.
- Author:
- Juha Pääjärvi / TCM laboratory / HUT
-
DEBUG
- DEBUG flag controls if we want to compile debug messages.
-
VCPoint(int, int, int, Port)
- Constructs new VCPoint object.
-
exists()
- Returns true if this virtual channel connection point exists,
otherwise returns false.
-
forcedRelease()
- Releases this point regardless of wheather it is connected or not.
-
getID()
- Returns point ID of this connection point.
-
getIterator()
- Returns the DListIterator identifying this connection in DList
of outgoing connection points for multicast connections.
-
getOwnerConnection()
- Returns reference to the connection in which this point belongs to.
-
getOwnerPort()
- Returns reference to the port object that represents the port in
which this point belongs.
-
getPort()
- Returns the port number of this point.
-
getVCI()
- Returns the VCI number of this point.
-
getVPI()
- Returns the VPI number of this point.
-
release()
- Releases this virtual channel connection point.
-
setIterator(DListIterator)
- Sets the DListIterator identifying this connection in DList of
outgoing connection points for multicast connections.
-
setOwnerConnection(VCConnection)
- Sets the owner connection of this point.
-
toString()
- Returns the textual representation of this VCPoint object.
DEBUG
protected static final boolean DEBUG
- DEBUG flag controls if we want to compile debug messages.
VCPoint
protected VCPoint(int port_,
int VPI_,
int VCI_,
Port portRef_)
- Constructs new VCPoint object.
- Parameters:
- port_ - Port number of this connection point.
- VPI_ - VPI number of this connection point.
- VCI_ - VCI number of this connection point.
- portRef_ - Reference to the port object of this point.
toString
public String toString()
- Returns the textual representation of this VCPoint object.
- Returns:
- Textual representation of this object.
- Overrides:
- toString in class Object
getPort
public int getPort()
- Returns the port number of this point.
- Returns:
- Port number of this point.
getVPI
public int getVPI()
- Returns the VPI number of this point.
- Returns:
- VPI number of this point.
getVCI
public int getVCI()
- Returns the VCI number of this point.
- Returns:
- VCI number of this point.
getOwnerConnection
public VCConnection getOwnerConnection()
- Returns reference to the connection in which this point belongs to.
- Returns:
- Connection object that owns this point.
exists
public boolean exists()
- Returns true if this virtual channel connection point exists,
otherwise returns false.
- Returns:
- True if this point exists, otherwise false.
release
public void release() throws SwitchException
- Releases this virtual channel connection point.
- Throws: SwitchException
- If this connection point has already been released.
- Throws: SwitchException
- If this point is being used in a connection.
getID
protected int getID()
- Returns point ID of this connection point.
- Returns:
- Point ID of this connection point.
getOwnerPort
protected Port getOwnerPort()
- Returns reference to the port object that represents the port in
which this point belongs.
- Returns:
- Reference to the port of this point.
setOwnerConnection
protected void setOwnerConnection(VCConnection owner_)
- Sets the owner connection of this point. This should be done
synchronously. This method is not synchronized because all the
modifications to VCPoint object must be synchronized by the user.
- Parameters:
- owner_ - owner connection of this point.
getIterator
protected DListIterator getIterator()
- Returns the DListIterator identifying this connection in DList
of outgoing connection points for multicast connections.
- Returns:
- DListIterator identifying this connection point.
setIterator
protected void setIterator(DListIterator newIterator_)
- Sets the DListIterator identifying this connection in DList of
outgoing connection points for multicast connections.
- Parameters:
- newIterator_ - DListIterator of this connection point.
forcedRelease
protected void forcedRelease()
- Releases this point regardless of wheather it is connected or not.
This method is intended to be used only when initSwitch or
resetSwitch methods are called for Switch class and the VCPoint
objects must be disabled. Call to this method makes it impossible
to use this VCPoint object to create connections after init or reset
has been performed.
All Packages Class Hierarchy This Package Previous Next Index