gsim.sim.communication
Class HelloProtocol

java.lang.Object
  extended by gsim.sim.communication.AbstractCommunicationProtocol
      extended by gsim.sim.communication.CommunicationProtocol
          extended by gsim.sim.communication.HelloProtocol
All Implemented Interfaces:
java.io.Serializable

public class HelloProtocol
extends CommunicationProtocol

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gsim.sim.communication.CommunicationProtocol
timeOut
 
Constructor Summary
HelloProtocol(java.lang.String ownName, java.lang.String partnerName)
           
 
Method Summary
 java.lang.String getName()
           
 Message getStartMessage()
           
 void onEnd()
           
 Message respond(Message m)
          onMessageReceive
 
Methods inherited from class gsim.sim.communication.CommunicationProtocol
equals, getCommId, getOwnName, getPartnerName, getReceiverProtocol, hashCode, setCommId
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloProtocol

public HelloProtocol(java.lang.String ownName,
                     java.lang.String partnerName)
Method Detail

getName

public java.lang.String getName()

getStartMessage

public Message getStartMessage()
Specified by:
getStartMessage in class CommunicationProtocol

onEnd

public void onEnd()
Overrides:
onEnd in class AbstractCommunicationProtocol

respond

public Message respond(Message m)
onMessageReceive

Specified by:
respond in class AbstractCommunicationProtocol
Parameters:
m - Message