Class Start
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Start
- All Implemented Interfaces:
Timestamped
-
Nested Class Summary
Nested classes/interfaces inherited from interface Timestamped
Timestamped.Adapter -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal RoleThe role the recipient of this message will have in the sessionfinal TitledWorldThe story world (with its title and description) in which the session will take placeFields inherited from interface Timestamped
FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionStart(TitledWorld world, Role role) Constructs a new start message with the given story world the session will take place in. -
Method Summary
Methods inherited from class Message
configure, getAgent, getTimestamp, setAgent
-
Field Details
-
world
The story world (with its title and description) in which the session will take place -
role
The role the recipient of this message will have in the session
-
-
Constructor Details
-
Start
Constructs a new start message with the given story world the session will take place in.- Parameters:
world- the story world the session will take place inrole- the role the recipient of this message will play in the session
-
-
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.
-