cvm.model.handlers.schema.control
Class ConnectionObject

java.lang.Object
  extended by cvm.model.handlers.schema.control.ConnectionObject

public class ConnectionObject
extends java.lang.Object

Connection information of the control schema.

Author:
Frank Hernandez

Constructor Summary
ConnectionObject(java.lang.String sConID)
           
 
Method Summary
 void addDevice(ConnectionDevice dev)
          Adds a new device to the connection.
 void addFormTypeRefs(ConnectionFormTypeNameRef ref)
          Add a formTypeRefs to the Connection.
 void addMediumTypeRef(ConnectionMediumTypeRef ref)
          Add a mediumTypeRefs to the ControlSchema.
 boolean equals(java.lang.Object obj)
          Used for comparing Connections.
 java.lang.String getBandwidth()
          Returns the bandwith for this connection.
 java.lang.String getConnectionID()
          Returns the connecionID for this connection.
 java.util.ArrayList<ConnectionDevice> getDevices()
          Gets the device list for this connection.
 java.util.ArrayList<ConnectionFormTypeNameRef> getFormTypeRefs()
          Returns the formTypeRefs list.
 java.util.ArrayList<ConnectionMediumTypeRef> getMediumTypeRefs()
          Returns the mediumRefs list.
 void setBandwidth(java.lang.String band)
          Sets the bandwidth for this connection.
 void setConnectionID(java.lang.String connID)
          Sets the connectionID
 void setDevices(java.util.ArrayList<ConnectionDevice> devs)
          Sets the new list of devices.
 void setFormTypeRefs(java.util.ArrayList<ConnectionFormTypeNameRef> newRefs)
          Replaces the formTypeRefs list.
 void setMediumTypeRefs(java.util.ArrayList<ConnectionMediumTypeRef> newRefs)
          Replaces the mediumTypeRefs list.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionObject

public ConnectionObject(java.lang.String sConID)
Method Detail

addDevice

public void addDevice(ConnectionDevice dev)
Adds a new device to the connection.

Parameters:
dev - device to add.
See Also:
ConnectionDevice

getConnectionID

public java.lang.String getConnectionID()
Returns the connecionID for this connection.

Returns:
connection id.

setConnectionID

public void setConnectionID(java.lang.String connID)
Sets the connectionID

Parameters:
connID - new ID to set.

getBandwidth

public java.lang.String getBandwidth()
Returns the bandwith for this connection.

Returns:
bandwidth

setBandwidth

public void setBandwidth(java.lang.String band)
Sets the bandwidth for this connection.

Parameters:
band - new bandwidth to set.

getDevices

public java.util.ArrayList<ConnectionDevice> getDevices()
Gets the device list for this connection.

Returns:
list of devices.

setDevices

public void setDevices(java.util.ArrayList<ConnectionDevice> devs)
Sets the new list of devices.

Parameters:
devs - new list to set.

addFormTypeRefs

public void addFormTypeRefs(ConnectionFormTypeNameRef ref)
Add a formTypeRefs to the Connection.

Parameters:
ref - ConnetionMediumTypeRef instance to add.

getFormTypeRefs

public java.util.ArrayList<ConnectionFormTypeNameRef> getFormTypeRefs()
Returns the formTypeRefs list.

Returns:
mediumRefs list.

setFormTypeRefs

public void setFormTypeRefs(java.util.ArrayList<ConnectionFormTypeNameRef> newRefs)
Replaces the formTypeRefs list.

Parameters:
newRefs - new mediumTypeRefs list.

addMediumTypeRef

public void addMediumTypeRef(ConnectionMediumTypeRef ref)
Add a mediumTypeRefs to the ControlSchema.

Parameters:
ref - ConnetionMediumTypeRef instance to add.

getMediumTypeRefs

public java.util.ArrayList<ConnectionMediumTypeRef> getMediumTypeRefs()
Returns the mediumRefs list.

Returns:
mediumRefs list.

setMediumTypeRefs

public void setMediumTypeRefs(java.util.ArrayList<ConnectionMediumTypeRef> newRefs)
Replaces the mediumTypeRefs list.

Parameters:
newRefs - new ConnectionMediumTypeRef list.

equals

public boolean equals(java.lang.Object obj)
Used for comparing Connections.

Overrides:
equals in class java.lang.Object