infoservice.agreement.multicast.interfaces
Interface IAgreementMessage

All Superinterfaces:
IDistributable
All Known Implementing Classes:
AMessage, CommitMessage, ConfirmationMessage, EchoMessage, InitMessage, RejectMessage

public interface IAgreementMessage
extends IDistributable


Field Summary
 
Fields inherited from interface anon.infoservice.IDistributable
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
 
Method Summary
 java.lang.String getConsensusId()
          Returns the unique id of the consensus this message belongs to
 java.lang.String getHashKey()
          Returns an unique key for a Hashtable
 int getMessageType()
          Returns the type of this message.
 boolean isSignatureOK()
          Indicates if the signature of this message has been correct
 void setLastCommonRandom(java.lang.String string)
          Sets the round number.
 void setSignatureOk(boolean a_ok)
          Sets if the signature of this message has been ok
 void setXmlDocument(org.w3c.dom.Document a_node)
          Sets an XML representation of this message
 org.w3c.dom.Document toXML()
          Creates an XML representation of this message.
 
Methods inherited from interface anon.infoservice.IDistributable
getId, getPostData, getPostEncoding, getPostFile
 

Method Detail

toXML

org.w3c.dom.Document toXML()
Creates an XML representation of this message.

Returns:
The Docunment:

isSignatureOK

boolean isSignatureOK()
Indicates if the signature of this message has been correct

Returns:
true if the signature has been correct, false otherwise

getHashKey

java.lang.String getHashKey()
Returns an unique key for a Hashtable

Returns:
An unique key for a Hashtable

getConsensusId

java.lang.String getConsensusId()
Returns the unique id of the consensus this message belongs to

Returns:
The unique id of the consensus this message belongs to

setSignatureOk

void setSignatureOk(boolean a_ok)
Sets if the signature of this message has been ok

Parameters:
a_ok -

getMessageType

int getMessageType()
Returns the type of this message.

Returns:
The type of this message
See Also:
AgreementMessageTypes

setXmlDocument

void setXmlDocument(org.w3c.dom.Document a_node)
Sets an XML representation of this message

Parameters:
a_node -

setLastCommonRandom

void setLastCommonRandom(java.lang.String string)
Sets the round number. This is for simulation purposes only (I think...)

Parameters:
string -