|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.sim.ConnectionList
public class ConnectionList
This class maintains a list of active agent connections.
Field Summary | |
---|---|
private java.util.Vector<Connection> |
connections
List of agent connections. |
private static long |
serialVersionUID
Generated serial version UID. |
Constructor Summary | |
---|---|
ConnectionList()
Default constructor. |
Method Summary | |
---|---|
void |
addConnection(Connection conn)
Add a new connection to the list. |
Connection |
elementAt(int i)
Return the ith element of the connection list. |
java.util.Vector |
getConnections()
Return the connection list. |
Connection |
getConnectionsElementAt(int i)
Return the ith element of the connection list. |
void |
removeConnection(Connection conn)
Remove an existing connection. |
void |
removeConnection(int conn)
Remove an existing connection. |
void |
setConnections(java.util.Vector<Connection> connections)
(Re-) Set the connection list. |
int |
size()
Return the size of the connection list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.util.Vector<Connection> connections
Constructor Detail |
---|
public ConnectionList()
Method Detail |
---|
public void addConnection(Connection conn)
conn
- A new connection to add.public void removeConnection(int conn)
conn
- The index of the connection to be removed.public void removeConnection(Connection conn)
conn
- The connection to be removed.public Connection elementAt(int i)
i
- Index into the connection list.
public java.util.Vector getConnections()
public Connection getConnectionsElementAt(int i)
i
- Index into the connection list.
public void setConnections(java.util.Vector<Connection> connections)
connections
- public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |