infoservice.agreement.multicast.messages
Class InitMessage

java.lang.Object
  extended by infoservice.agreement.multicast.messages.AMessage
      extended by infoservice.agreement.multicast.messages.InitMessage
All Implemented Interfaces:
IDistributable, IAgreementMessage

public class InitMessage
extends AMessage


Field Summary
 
Fields inherited from class infoservice.agreement.multicast.messages.AMessage
m_consensusId, m_initiatorsId, m_lastCommonRandom, m_messageType, m_proposal, m_senderId, m_signatureOk, m_xmlNode
 
Fields inherited from interface anon.infoservice.IDistributable
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
 
Constructor Summary
InitMessage(java.lang.String a_initiatorsId, java.lang.String a_proposal, java.lang.String a_lastCommonRandom)
          InitMessage for the EchoBroadcast-Protocol.
 
Method Summary
protected  void appendCustomNodes(org.w3c.dom.Document a_doc, org.w3c.dom.Node a_rootElem)
          Subclasses can add some extra nodes into the xml representation of this message by implementing this method
 
Methods inherited from class infoservice.agreement.multicast.messages.AMessage
getConsensusId, getHashKey, getId, getInitiatorsId, getLastCommonRandom, getMessageType, getPostData, getPostEncoding, getPostFile, getProposal, getSenderId, isSignatureOK, setConsensusId, setLastCommonRandom, setProposal, setSignatureOk, setXmlDocument, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InitMessage

public InitMessage(java.lang.String a_initiatorsId,
                   java.lang.String a_proposal,
                   java.lang.String a_lastCommonRandom)
InitMessage for the EchoBroadcast-Protocol.

Parameters:
a_initiatorsId - ID of the initiating InfoService
a_proposal - The message to broadcase
a_lastCommonRandom - The value of the last commonly known random number as a unique round identifier
Method Detail

appendCustomNodes

protected void appendCustomNodes(org.w3c.dom.Document a_doc,
                                 org.w3c.dom.Node a_rootElem)
Description copied from class: AMessage
Subclasses can add some extra nodes into the xml representation of this message by implementing this method

Specified by:
appendCustomNodes in class AMessage
Parameters:
a_doc - The owner document
a_rootElem - The node to which the extra nodes should be added