Class Connect
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Connect
- All Implemented Interfaces:
Timestamped
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdvertises that a specific story world and agent pair is waiting for a match.Nested classes/interfaces inherited from interface Timestamped
Timestamped.Adapter -
Field Summary
FieldsModifier and TypeFieldDescriptionA list ofentriesgiving the names and descriptions of the publicly listed agents available on this serverfinal Connect.Available[]A list ofavailableworld/agent pairs that lets an agent know whether a specific combination of a story world and agent is immediately available for playfinal StringThe server's software versionA list ofentriesgiving the names and descriptions of the publicly listed worlds available on this serverFields inherited from interface Timestamped
FORMAT -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Message
configure, getAgent, getTimestamp, setAgent
-
Field Details
-
version
The server's software version -
worlds
-
agents
-
available
A list ofavailableworld/agent pairs that lets an agent know whether a specific combination of a story world and agent is immediately available for play
-
-
Constructor Details
-
Connect
Constructs a new connect message with a given list of worlds and agents.- Parameters:
worlds- a list of the names and descriptions of worlds available on the serveragents- a list of the names and descriptions of agents available on the serveravailable- a list of currently available world/agent pairs
-
-
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.
-