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

public static class ServerStatus.Waiting extends Duration.Ongoing
A summary of an agent that has joined the server and is waiting for a partner.
Author:
Stephen G. Ware
  • Field Details

    • agent

      public final Titled agent
      The name, title, and description of the waiting agent
    • world

      public final Titled 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

      public final Role 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

      public final Titled 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

      public Waiting(Titled agent, Titled world, Role role, Titled partner, long start)
      Constructs a summary of a waiting agent from its important values.
      Parameters:
      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
      start - 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