Package edu.uky.cs.nil.tt.io
package edu.uky.cs.nil.tt.io
The IO (input/output) package defines the various
message
types that can be sent between a server and client and provide some utilities
for serializing and deserializing objects as JSON.-
ClassesClassDescriptionAn abstract adapter is used to configure a
GsonBuilderto read and write objects that share a common parent class, including abstract types like interfaces and abstract classes.The choice message is sent from anagentto the {edu.uky.cs.nil.tt.Server server} to signal what turn the agent wants to take.The connect message is sent from the {edu.uky.cs.nil.tt.Server server} to anagentas soon as the agent connects to give details about which story worlds and agents are available for play.Advertises that a specific story world and agent pair is waiting for a match.The end message is sent from the {edu.uky.cs.nil.tt.Server server} to anagentto indicate that the session had ended and that they should now disconnect.The error message is sent from the {edu.uky.cs.nil.tt.Server server} to anagentif one of the agent's messages causes a problem or is incorrectly formatted.A generic adapter is used to configure aGsonBuilderto write all subclasses of a given superclass as that superclass.The join message is the first message sent from anagentto the {edu.uky.cs.nil.tt.Server server} to provide the agent's credentials and its preferences for what story world, role, and partner they want for their session.A message is information sent to or from aserverin JSON format.The report message is sent from anagentto the {edu.uky.cs.nil.tt.Server server} to indicate the value of a question on a survey about the session they are playing.The start message is sent from the {edu.uky.cs.nil.tt.Server server} to anagentwhen a partner has been found and their session begins.The updates message is sent from the {edu.uky.cs.nil.tt.Server server} to anagenteach time a turn is taken and the state of the story world changes.