cz.cuni.amis.pogamut.defcon.communication.messages.commands
Class SendVote

Package class diagram package SendVote
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
          extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.SendVote

public class SendVote
extends DefConCommand

Votes in a poll.


Constructor Summary
SendVote(SendVote original)
          Cloning constructor...
SendVote(VoteType voteType, Vote vote)
          Creates new instance of command SendVote.
 
Method Summary
 Vote getVote()
          Type of vote.
 VoteType getVoteType()
          Type of vote.
 void perform()
          Performs the command - to be used only by the DefConCommandExecutor.
 SendVote setVote(Vote vote)
          Type of vote.
 SendVote setVoteType(VoteType voteType)
          Type of vote.
 String toHtmlString()
          Returns message in html format.
 String toString()
          Returns human readable serialization of the message.
 
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
getStringizedFields, toMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendVote

public SendVote(VoteType voteType,
                Vote vote)
Creates new instance of command SendVote. Votes in a poll.

Parameters:
voteType - Type of vote.
vote - Type of vote.

SendVote

public SendVote(SendVote original)
Cloning constructor...

Parameters:
original -
Method Detail

getVoteType

public VoteType getVoteType()
Type of vote.

Returns:
VoteType

setVoteType

public SendVote setVoteType(VoteType voteType)
Type of vote.

Parameters:
voteType -
Returns:
this object, allows you to chain setters

getVote

public Vote getVote()
Type of vote.

Returns:
Vote

setVote

public SendVote setVote(Vote vote)
Type of vote.

Parameters:
vote -
Returns:
this object, allows you to chain setters

perform

public void perform()
Performs the command - to be used only by the DefConCommandExecutor.

Specified by:
perform in class DefConCommand

toString

public String toString()
Returns human readable serialization of the message.

Overrides:
toString in class CommandMessage
Returns:
human readable string

toHtmlString

public String toHtmlString()
Returns message in html format.

Returns:
html message


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.