Class Choice
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Choice
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe index of a turn from the most recentstatus updatesent to the agent, starting at 0 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
public final int indexThe index of a turn from the most recentstatus updatesent to the agent, starting at 0
-
-
Constructor Details
-
Choice
public Choice(int index) Constructs a choice message for a given choice index.- Parameters:
index- the index of the turn from the agent's most recent status update that the agent wants to take
-
-
Method Details
-
toString
-
verify
public void verify()Description copied from class:MessageChecks that this message is correctly configured and throws an exception if not. This method should be called soon after the message has been parsed. It should check that all the necessary fields are set and that their values are legal values.
-