|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.evalbench.comm.CommunicationProtocol
public abstract class CommunicationProtocol
Abstract class, implements common protocol features.
Field Summary |
---|
Fields inherited from interface de.cau.cs.kieler.krep.evalbench.comm.ICommunicationProtocol |
---|
P_KEP, P_KREP |
Constructor Summary | |
---|---|
protected |
CommunicationProtocol(IConnection connectionProtocol)
Constructs a new instance of the KEP protocol. |
Method Summary | |
---|---|
void |
addCommunicationListener(ICommunicationListener listener)
Adds a communication listener that is notified of all transferred data. |
protected LinkedList<ICommunicationListener> |
getCommunicationListeners()
|
protected IConnection |
getConnection()
|
protected void |
notifyComment(String comment)
Notifies all registered communication listeners about a comment. |
protected void |
notifyReceive(String data)
Notifies all registered communication listeners about received data. |
protected void |
notifySend(String data)
Notifies all registered communication listeners about sent data. |
void |
removeCommunicationListener(ICommunicationListener listener)
Removes a communication listener from the list. |
protected void |
setCommunicationListeners(LinkedList<ICommunicationListener> theCommunicationListeners)
|
protected void |
setConnection(IConnection theConnection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.cau.cs.kieler.krep.evalbench.comm.ICommunicationProtocol |
---|
continuousRun, getExecutionTrace, getTargetInfo, loadProgram, reset, stopContinuous, tick, verifyCommunication |
Constructor Detail |
---|
protected CommunicationProtocol(IConnection connectionProtocol)
connectionProtocol
- underlying connection protocol to be used; this protocol instance is expected to
be already initializedMethod Detail |
---|
protected void notifySend(String data)
data
- data that was sentprotected void notifyReceive(String data)
data
- data that was receivedprotected void notifyComment(String comment)
comment
- comment about the next transactionpublic void addCommunicationListener(ICommunicationListener listener)
addCommunicationListener
in interface ICommunicationProtocol
listener
- listener to be addedpublic void removeCommunicationListener(ICommunicationListener listener)
removeCommunicationListener
in interface ICommunicationProtocol
listener
- listener to be removedprotected void setCommunicationListeners(LinkedList<ICommunicationListener> theCommunicationListeners)
theCommunicationListeners
- the communicationListeners to setprotected LinkedList<ICommunicationListener> getCommunicationListeners()
protected void setConnection(IConnection theConnection)
theConnection
- the connection to setprotected IConnection getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |