Package org.jcsp.net.settings
Class Protocols
- java.lang.Object
-
- org.jcsp.net.settings.Protocols
-
public class Protocols extends java.lang.Object
Used internally within the JCSP network infrastructure to represent a set of protocols.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Protocols.ProtocolAlreadyExistsException
-
Field Summary
Fields Modifier and Type Field Description private Protocol
lastProtocol
private java.util.Hashtable
protocolIDMap
private java.util.Hashtable
protocols
-
Constructor Summary
Constructors Constructor Description Protocols()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProtocol(Protocol p)
Protocol
getLastProtocol()
Protocol
getProtocol(java.lang.String protocolID)
Protocol[]
getProtocols()
void
removeProtocol(Protocol p)
java.lang.String
toString()
-
-
-
Field Detail
-
protocols
private java.util.Hashtable protocols
-
protocolIDMap
private java.util.Hashtable protocolIDMap
-
lastProtocol
private Protocol lastProtocol
-
-
Method Detail
-
addProtocol
public void addProtocol(Protocol p)
-
removeProtocol
public void removeProtocol(Protocol p)
-
getProtocol
public Protocol getProtocol(java.lang.String protocolID)
-
getLastProtocol
public Protocol getLastProtocol()
-
getProtocols
public Protocol[] getProtocols()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-