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

Variable Index

 o DEBUG
DEBUG flag controls if we want to compile debug messages.

Constructor Index

 o VCPoint(int, int, int, Port)
Constructs new VCPoint object.

Method Index

 o exists()
Returns true if this virtual channel connection point exists, otherwise returns false.
 o forcedRelease()
Releases this point regardless of wheather it is connected or not.
 o getID()
Returns point ID of this connection point.
 o getIterator()
Returns the DListIterator identifying this connection in DList of outgoing connection points for multicast connections.
 o getOwnerConnection()
Returns reference to the connection in which this point belongs to.
 o getOwnerPort()
Returns reference to the port object that represents the port in which this point belongs.
 o getPort()
Returns the port number of this point.
 o getVCI()
Returns the VCI number of this point.
 o getVPI()
Returns the VPI number of this point.
 o release()
Releases this virtual channel connection point.
 o setIterator(DListIterator)
Sets the DListIterator identifying this connection in DList of outgoing connection points for multicast connections.
 o setOwnerConnection(VCConnection)
Sets the owner connection of this point.
 o toString()
Returns the textual representation of this VCPoint object.

Variables

 o DEBUG
 protected static final boolean DEBUG
DEBUG flag controls if we want to compile debug messages.

Constructors

 o 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.

Methods

 o toString
 public String toString()
Returns the textual representation of this VCPoint object.

Returns:
Textual representation of this object.
Overrides:
toString in class Object
 o getPort
 public int getPort()
Returns the port number of this point.

Returns:
Port number of this point.
 o getVPI
 public int getVPI()
Returns the VPI number of this point.

Returns:
VPI number of this point.
 o getVCI
 public int getVCI()
Returns the VCI number of this point.

Returns:
VCI number of this point.
 o getOwnerConnection
 public VCConnection getOwnerConnection()
Returns reference to the connection in which this point belongs to.

Returns:
Connection object that owns this point.
 o exists
 public boolean exists()
Returns true if this virtual channel connection point exists, otherwise returns false.

Returns:
True if this point exists, otherwise false.
 o 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.
 o getID
 protected int getID()
Returns point ID of this connection point.

Returns:
Point ID of this connection point.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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