|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable is.lill.acre.protocol.ProtocolManager
public class ProtocolManager
Class to manage protocols for an agent platform This is designed to be shared among all agents
Constructor Summary | |
---|---|
ProtocolManager()
|
Method Summary | |
---|---|
void |
addProtocol(Protocol protocol)
Add a Protocol to the manager |
void |
addRepository(IProtocolRepository repository)
|
void |
addSource(IProtocolSource source)
Add a single source to this manager, from which a protocol should be read |
Protocol |
getProtocolByDescriptor(ProtocolDescriptor pd)
Given a protocol descriptor, get the associated protocol |
java.util.Collection<Protocol> |
getProtocols()
Get all the protocols loaded |
java.util.Set<Protocol> |
getProtocolsMatchingDescriptor(ProtocolDescriptor pd)
|
void |
removeProtocol(Protocol protocol)
Unload a protocol from the manager |
int |
size()
Get the number of protocols loaded |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtocolManager()
Method Detail |
---|
public void addSource(IProtocolSource source)
source
- public int size()
public void addProtocol(Protocol protocol)
Protocol
to the manager
protocol
- public java.util.Collection<Protocol> getProtocols()
public void removeProtocol(Protocol protocol)
protocol
- public Protocol getProtocolByDescriptor(ProtocolDescriptor pd)
pd
- Descriptor of the desired protocol
null
if the
protocol manager has no way of finding it.public java.util.Set<Protocol> getProtocolsMatchingDescriptor(ProtocolDescriptor pd)
public void addRepository(IProtocolRepository repository) throws RepositoryException
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |