Class ServerStatus.Waiting
java.lang.Object
edu.uky.cs.nil.tt.Duration.Ongoing
edu.uky.cs.nil.tt.ServerStatus.Waiting
- All Implemented Interfaces:
Duration, Comparable<Duration>
- Enclosing class:
ServerStatus
A summary of an agent that has joined the server and is waiting for a
partner.
- Author:
- Stephen G. Ware
-
Nested Class Summary
Nested classes/interfaces inherited from interface Duration
Duration.Adapter, Duration.Ongoing -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TitledThe name, title, and description of the waiting agentfinal TitledThe name, title, and description of the partner the waiting agent wants to play with, or null if the agent is willing to play with any partnerfinal RoleThe role the waiting agent wants to play in the story world, or null if the agent is willing to play either rolefinal TitledThe name, title, and description of the story world the waiting agent wants to play in, or null if the agent is willing to play in any world -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Duration.Ongoing
compareTo, getEndTime, getStartTimeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Duration
getDuration
-
Field Details
-
agent
The name, title, and description of the waiting agent -
world
The name, title, and description of the story world the waiting agent wants to play in, or null if the agent is willing to play in any world -
role
The role the waiting agent wants to play in the story world, or null if the agent is willing to play either role -
partner
The name, title, and description of the partner the waiting agent wants to play with, or null if the agent is willing to play with any partner
-
-
Constructor Details
-
Waiting
Constructs a summary of a waiting agent from its important values.- Parameters:
agent- the name, title, and description of the waiting agentworld- the name, title, and description of the story world the waiting agent wants to play in, or null if the agent is willing to play in any worldrole- the role the waiting agent wants to play in the story world, or null if the agent is willing to play either rolepartner- the name, title, and description of the partner the waiting agent wants to play with, or null if the agent is willing to play with any partnerstart- the moment when the agent joined the server as the number of milliseconds from the epoch (1970-01-01T00:00:00Z) in Coordinated Universal Time (UTC)
-
-
Method Details
-
toString
- Overrides:
toStringin classDuration.Ongoing
-