Index

A B C D E G H I K L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addClientToWorld(Client) - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Add a new client connection
addData(Map<String, String>) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Setter for the data of this error response builder
addErrorSource(ImplementedClientCommands) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Setter for the error source of this error response
addObjectToWorld(WorldObject, Position) - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Void method to add an instance into the World
addRobot(ServerResponse, ClientRobot) - Method in class za.co.wethinkcode.robots.client.ClientState
add a bot to the client memory and return true if it was added
addToClientMemory(ClientCommandRequest, ServerResponse) - Method in class za.co.wethinkcode.robots.client.ClientState
Add a roundTrip of request and response to the client's memory
AppLauncher - Class in za.co.wethinkcode.robots.shared
 
AppLauncher() - Constructor for class za.co.wethinkcode.robots.shared.AppLauncher
 
applyCommandSafely(ClientCommand, ClientCommandRequest) - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldStateIdentity
Core Compare and Swap loop necessary for atomic operations.
Args - Class in za.co.wethinkcode.robots.shared.arguments
Static class for accessing Launch Arg classes
Args() - Constructor for class za.co.wethinkcode.robots.shared.arguments.Args
 
Args.direction - Record Class in za.co.wethinkcode.robots.shared.arguments
The direction the robot is facing
Args.kindArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store robot kind for a launch request
Args.name - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store the name of the robot being launched
Args.reloadArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store how long it takes to reload
Args.repairArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store how long it takes to repair
Args.shieldsArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store the shields argument for launch
Args.shotsArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store the shots argument for launch
Args.spawn - Record Class in za.co.wethinkcode.robots.shared.arguments
Getter for the spawn point of a robot
Args.visibilityArg - Record Class in za.co.wethinkcode.robots.shared.arguments
Record class to store how many kliks from you you can see
Argument<T> - Interface in za.co.wethinkcode.robots.shared
Interface that allows a class to be an argument to a function
arguments - Variable in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
 
argumentsMap() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
Returns the value of the argumentsMap record component.

B

BORING - Enum constant in enum class za.co.wethinkcode.robots.shared.RobotKind
Boringbot.
BoringClientBot - Class in za.co.wethinkcode.robots.client.clientRobot
A boring client robot.
BoringClientBot(String) - Constructor for class za.co.wethinkcode.robots.client.clientRobot.BoringClientBot
Standard construction of a Boring Client bot.
BoringClientBot(String, RobotState) - Constructor for class za.co.wethinkcode.robots.client.clientRobot.BoringClientBot
Construction of a robot from a RobotState
BoringServerBot - Class in za.co.wethinkcode.robots.server.serverRobot
A boring serverRobot.
BoringServerBot() - Constructor for class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
Reflection constructor for Serialization
BoringServerBot(String) - Constructor for class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
Standard name only constructor for a new BoringServerBot from name;
BoringServerBot(String, WorldState) - Constructor for class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
Constructor for a Boring server robot with a name and worldState
BoringServerBot(BoringClientBot) - Constructor for class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
Cloning Constructor to make a new BoringServerBot from an existing ClientBot
BottomlessPit - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
 
build() - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Build in place the server response from this error
build() - Method in class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
Build a new Server Response in place
build(String, String[]) - Method in class za.co.wethinkcode.robots.server.serverCommands.ServerCommandFactory
 
build(InternalResponseCode) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Quick builder to build based a ServerResponse based on an InternalResponseCode

C

call() - Method in class za.co.wethinkcode.robots.server.networking.ServerSingleThread
 
changeState(ClientCommandRequest, ServerResponse) - Method in class za.co.wethinkcode.robots.client.ClientState
 
checkIfRobotWithThatNameExists(String) - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Checks the worldState to see if the currentWorldState has that Robot
Client - Class in za.co.wethinkcode.robots.server.networking
Filler Class
Client() - Constructor for class za.co.wethinkcode.robots.server.networking.Client
No arg constructor for a client.
ClientCommand - Interface in za.co.wethinkcode.robots.server.clientCommands
Interface for all client commands that get executed on the server
ClientCommandFactory - Class in za.co.wethinkcode.robots.server.clientCommands
Factory pattern for processing Client Commands
ClientCommandFactory() - Constructor for class za.co.wethinkcode.robots.server.clientCommands.ClientCommandFactory
 
ClientCommandRequest - Class in za.co.wethinkcode.robots.client.commands
 
ClientCommandRequest() - Constructor for class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
 
ClientCommandRequest(String, ImplementedClientCommands, String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
Standard constructor for a Client Requesting that a command be executed
ClientCommandRequestFactory - Class in za.co.wethinkcode.robots.client.commands
Factory class that allows us to execute arbitrarily many serverCommands
ClientCommandRequestFactory() - Constructor for class za.co.wethinkcode.robots.client.commands.ClientCommandRequestFactory
Empty constructor for Request factory
ClientCommandResult - Class in za.co.wethinkcode.robots.server.clientCommands
Abstract parent class of the result of a client's command being executed
ClientCommandResult() - Constructor for class za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
 
ClientExample - Class in za.co.wethinkcode.robots.client
 
ClientExample() - Constructor for class za.co.wethinkcode.robots.client.ClientExample
 
ClientInputValidate - Class in za.co.wethinkcode.robots.client.commands
 
ClientInputValidate() - Constructor for class za.co.wethinkcode.robots.client.commands.ClientInputValidate
empty constructor for validating user input validator
ClientInputValidate(String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.ClientInputValidate
Overload for Constructor for Input Validator that accepts a new string of acceptable arguments
ClientInputValidate(ArrayList<String>) - Constructor for class za.co.wethinkcode.robots.client.commands.ClientInputValidate
Overload for Constructor for Input Validator that accepts a new string of acceptable arguments
ClientMain - Class in za.co.wethinkcode.robots.client
This is the main entry class of the client.
ClientMain() - Constructor for class za.co.wethinkcode.robots.client.ClientMain
 
ClientRobot - Class in za.co.wethinkcode.robots.client.clientRobot
Abstract parent class of all clients on the robot's side
ClientRobot(String) - Constructor for class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Constructor for a client Robot based on its name
ClientRobot(String, RobotKind) - Constructor for class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Dynamic constructor for a clientRobot
ClientRobotFactory - Class in za.co.wethinkcode.robots.client.clientRobot
Factory pattern for making Client Robots
ClientRobotFactory() - Constructor for class za.co.wethinkcode.robots.client.clientRobot.ClientRobotFactory
 
ClientSideServerResponse - Class in za.co.wethinkcode.robots.client
Primarily utility response to instantiate server responses on the client side.
ClientSideServerResponse() - Constructor for class za.co.wethinkcode.robots.client.ClientSideServerResponse
No arg constructor for reflection
ClientSideServerResponse(Map<String, Object>, ServerResponse.ServerResponseCode, RobotState) - Constructor for class za.co.wethinkcode.robots.client.ClientSideServerResponse
Constructor for ClientSideServerResponse without state
ClientState - Class in za.co.wethinkcode.robots.client
Utility class for storing the memory of a client's session
ClientState() - Constructor for class za.co.wethinkcode.robots.client.ClientState
Default empty constructor for client memory's memory of a session
ClientState(Map<String, ClientRobot>) - Constructor for class za.co.wethinkcode.robots.client.ClientState
 
ClientState.RequestRoundTrip - Record Class in za.co.wethinkcode.robots.client
Record for client side debugging
command - Variable in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
 
Command - Interface in za.co.wethinkcode.robots.shared
Interface that abstracts all serverCommands and promises all serverCommands will return a commandResult
CommandResult - Interface in za.co.wethinkcode.robots.shared
Interface that allows us to abstract the similarities of all command results
CommandSplitter - Class in za.co.wethinkcode.robots.client.commands
Utility for splitting a command
CommandSplitter(String) - Constructor for class za.co.wethinkcode.robots.client.commands.CommandSplitter
Standard Constructor for a commandSplitter.
CommandSplitter(String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.CommandSplitter
 
create(String) - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequestFactory
 
create(String, RobotKind, Integer, Integer, WorldState) - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerBotFactory
Create a new server robot
create(ClientRobot, String) - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequestFactory
 
create(ClientCommandResult) - Static method in class za.co.wethinkcode.robots.server.serverResponse.ServerResponseFactory
Create a Server Response based on how a CommandResult has been evaluated
create(LaunchCommandServerResponse, LaunchCommandRequest) - Static method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobotFactory
 
createCommand(ImplementedClientCommands, ClientCommandRequest, WorldStateIdentity, ObjectMapper) - Static method in class za.co.wethinkcode.robots.server.clientCommands.ClientCommandFactory
Static method that allows in place creation of commands from the client
currentBotTypes - Static variable in class za.co.wethinkcode.robots.client.HelpInfo
 

D

data - Variable in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
 
data - Variable in class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
 
DEAD - Enum constant in enum class za.co.wethinkcode.robots.shared.RobotStatus
This robot is dead.
deserializeKey(String, DeserializationContext) - Method in class za.co.wethinkcode.robots.shared.Position.KeyDeserializer
 
direction(Direction) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.direction
Creates an instance of a direction record class.
direction() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Returns the value of the direction record component.
direction() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns the value of the direction record component.
direction() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.direction
Returns the value of the direction record component.
Direction - Enum Class in za.co.wethinkcode.robots.shared
Enum that annotates the cardinal directions absolutely
distance() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Returns the value of the distance record component.
DumpCommand - Class in za.co.wethinkcode.robots.server.serverCommands
Concrete version of an unevaluated Dump Command
DumpCommand() - Constructor for class za.co.wethinkcode.robots.server.serverCommands.DumpCommand
 
DumpCommand(String[]) - Constructor for class za.co.wethinkcode.robots.server.serverCommands.DumpCommand
 
DumpCommandResult - Class in za.co.wethinkcode.robots.server.serverCommands
Evaluated Result of a Dump Command
DumpCommandResult(Map<String, Argument>, WorldState, InternalResponseCode) - Constructor for class za.co.wethinkcode.robots.server.serverCommands.DumpCommandResult
Standard Constructor for Dump Command Result

E

EAST - Enum constant in enum class za.co.wethinkcode.robots.shared.Direction
Eastern direction of the world
EDGE - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.WorldObject.WorldObjectType
Edge of the world
equals(Object) - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
allows Direct Comparison between Server Robot and Client Robot
equals(Object) - Method in record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
allows Direct Comparison between Server Robot and Client Robot
equals(Object) - Method in class za.co.wethinkcode.robots.server.worldinfo.KlikGrid
Proving if two results are equal
equals(Object) - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
Proving if two results are equal
equals(Object) - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Overide of worldEquality
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.direction
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.name
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class za.co.wethinkcode.robots.shared.Position
 
ERROR - Enum constant in enum class za.co.wethinkcode.robots.shared.ServerResponse.ServerResponseCode
Every other error response
ErrorCommandResult - Class in za.co.wethinkcode.robots.server.errors
Standard Error CommandResult that can be constructed anywhere
ErrorCommandResult(ImplementedClientCommands, String) - Constructor for class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
Constructor for Error Command Result from a command source source and message
ErrorCommandResult(InternalResponseCode, ImplementedClientCommands, String) - Constructor for class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
Constructor for Error Command Result from an internal response code, source and message
ErrorResponseBuilder - Class in za.co.wethinkcode.robots.server.errors
Builder pattern class for creating error responses
ErrorResponseBuilder() - Constructor for class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Empty constructor for the error response builder
ErrorResponseBuilder(ClientCommandResult) - Constructor for class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Constructor the build a builder directly from a Client Command result
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand
 
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand
 
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand
 
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.serverCommands.DumpCommand
 
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.serverCommands.QuitCommand
 
execute(Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand
 
execute(Map<String, Argument>, WorldState) - Method in interface za.co.wethinkcode.robots.shared.Command
 
execute(ServerRobot, Map<String, Argument>, WorldState) - Method in interface za.co.wethinkcode.robots.server.clientCommands.ClientCommand
Overload of execute method that supports passing in a robot as the target for a command
execute(ServerRobot, Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand
Overload of execute method that supports passing in a robot as the target for a command
execute(ServerRobot, Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand
 
execute(ServerRobot, Map<String, Argument>, WorldState) - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand
 

G

getArguments() - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
Getter for arguments as a string
getArguments() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Getter for a string array based on the map of an arguments
getArguments() - Method in class za.co.wethinkcode.robots.client.commands.LookCommandRequest
 
getArguments() - Method in class za.co.wethinkcode.robots.client.commands.StateCommandRequest
 
getArgumentsMap() - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
Abstract method for childClasses to define their expected argument syntax
getArgumentsMap() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Abstract method for childClasses to define their expected argument syntax
getArgumentsMap() - Method in class za.co.wethinkcode.robots.client.commands.LookCommandRequest
Abstract method for childClasses to define their expected argument syntax
getArgumentsMap() - Method in class za.co.wethinkcode.robots.client.commands.StateCommandRequest
 
getClients() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
ClientMain List getter
getCommand() - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
 
getCommand() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Getter for the client command
getCommandArgs() - Method in class za.co.wethinkcode.robots.client.commands.CommandSplitter
Getter for the split commands
getCommandName() - Method in class za.co.wethinkcode.robots.client.commands.CommandSplitter
Getter for the commandName
getCurrentTarget() - Method in class za.co.wethinkcode.robots.client.ClientState
Getter for the currently selected target
getCurrentUsersRobotsNames() - Method in class za.co.wethinkcode.robots.client.ClientState
Getter for getting the names of the bots added to the client's memory
getData() - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
Getter for a server responses' data
getData() - Method in class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
Getter for a server responses' data
getData() - Method in class za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
Getter for a server responses' data
getData() - Method in class za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
Getter for a server responses' data
getData() - Method in interface za.co.wethinkcode.robots.shared.ServerResponse
Getter for a server responses' data
getEmptySpawn() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Utility method for getting empty spawn points
getImplementedClientCommands() - Method in class za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
Return the command that this result was evaluating
getImplementedClientCommands() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Return the command that this result was evaluating
getImplementedClientCommands() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
Return the command that this result was evaluating
getImplementedClientCommands() - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
Getter for the Client Command Type of this command
getImplementedClientCommands() - Method in class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
Return the command that this result was evaluating
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.serverCommands.DumpCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand.RobotsCommandResult
Explicitly forces Command Results to return a responseCode
getInternalResponseCode() - Method in interface za.co.wethinkcode.robots.shared.CommandResult
Explicitly forces Command Results to return a responseCode
getIPAddress() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
IP address getter
getklikGrid() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
KlikGrid getter
getKliksHigh() - Method in class za.co.wethinkcode.robots.server.worldinfo.KlikGrid
Standard KlikHeight Getter
getKliksWide() - Method in class za.co.wethinkcode.robots.server.worldinfo.KlikGrid
Standard KlikWidth Getter
getMapper() - Method in class za.co.wethinkcode.robots.shared.RobotWorldObjectMapper
Getter for our objectMapper
getMaximumShieldInHits() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Gets Maximum Shield for this world as measured in hits
getMessage() - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
Get the message from a server response data (really good for error handling)
getMessage() - Method in class za.co.wethinkcode.robots.server.clientCommands.ClientCommandResult
 
getMessage() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
 
getMessage() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
 
getMessage() - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
 
getMessage() - Method in class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
 
getMessage() - Method in class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
Get the message from a server response data (really good for error handling)
getMessage() - Method in class za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
Get the message from a server response data (really good for error handling)
getMessage() - Method in class za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
Get the message from a server response data (really good for error handling)
getMessage() - Method in interface za.co.wethinkcode.robots.shared.ServerResponse
Get the message from a server response data (really good for error handling)
getName() - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Getter for a Client Robot's name
getName() - Method in class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
 
getName() - Method in interface za.co.wethinkcode.robots.shared.Robot
Getter for the name of a robot
getNewRobot() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Getter for the new Robot being made
getNextWorldState() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Get the WorldState that the stateful command was evaluated based on.
getNextWorldState() - Method in interface za.co.wethinkcode.robots.server.clientCommands.Stateful
Get the WorldState that the stateful command was evaluated based on
getNextWorldState() - Method in class za.co.wethinkcode.robots.server.networking.ServerSingleThread
public void run() { try { String messageFromClient; while((messageFromClient = in.readLine()) != null) { try { //Takes in a request from a client ClientCommandRequest request = mapper.readValue(messageFromClient, ClientCommandRequest.class); //Creates a new command from it ClientCommand command = ClientCommandFactory.createCommand(request.getCommand(), request, this.currentWorldState, this.mapper); //Evaluates that command into a result ClientCommandResult commandResult = (ClientCommandResult) command.execute(request.getArgumentsMap(),this.currentWorldState); //Creates a response based on that result ServerResponse serverResponse = ServerResponseFactory.create(commandResult); //Sends that response back to the client mapper.writeValue(out,serverResponse); String tempO = request.getRobotName(); System.out.println("Message \"" + messageFromClient + "\" from " + clientMachine); out.println(tempO); out.println("Thanks for this message: "+messageFromClient); } catch (Exception e) { // throw new RuntimeException(e); out.println(e.getMessage()); } } } catch(IOException ex) { System.out.println("Shutting down single client server"); } finally { closeQuietly(); } }
getObstacles() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
 
getObstacles() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
 
getObstacleType() - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
Getter for Obstacle Type
getPosition() - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
Getter for an Object's Centre Position
getReloadTimeInSeconds() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Reload time getter (measured in seconds)
getResult() - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
public getter for a server's response to being given data
getResult() - Method in class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
public getter for a server's response to being given data
getResult() - Method in class za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
public getter for a server's response to being given data
getResult() - Method in class za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
public getter for a server's response to being given data
getResult() - Method in interface za.co.wethinkcode.robots.shared.ServerResponse
public getter for a server's response to being given data
getRobot() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
 
getRobotByName(String) - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Getter for a Robot in the World
getRobotKind() - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Standard getter for Client Robot's kind
getRobotKind() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Getter for the kind of robot being launched
getRobotKind() - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
getRobotKind() - Method in interface za.co.wethinkcode.robots.shared.Robot
Gets the kind of robot that this robot is
getRobotName() - Method in class za.co.wethinkcode.robots.client.commands.ClientCommandRequest
 
getRobotName() - Method in class za.co.wethinkcode.robots.client.commands.CommandSplitter
Getter for a robot name (typically for launch
getRobotName() - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Standard getter for robotName
getRobotState() - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
Getter of the State command robot state
getRobotState() - Method in class za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
Getter for this evaluated RobotState
getRobotState() - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Getter for the robot's state
getRobotStatus() - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Getter for a robot's status
getRobotStatus() - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Standard getter for a server robot's status
getRobotStatus() - Method in interface za.co.wethinkcode.robots.shared.Robot
Get this robot's status either RobotKind
getShieldRepairTimeInSeconds() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Shield repair time getter (measured in seconds)
getSpawn() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Getter for the spawn point of a Robot
getState() - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
Getter for the robot state associated with this target bot
getState() - Method in class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
 
getType() - Method in class za.co.wethinkcode.robots.client.clientRobot.BoringClientBot
Standard getter for a WorldObject's type
getType() - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Get the type of this server bot
getType() - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
Standard getter for a WorldObject's type
getType() - Method in interface za.co.wethinkcode.robots.server.worldinfo.WorldObject
Standard getter for a WorldObject's type
getValue() - Method in class za.co.wethinkcode.robots.client.clientRobot.BoringClientBot
 
getValue() - Method in class za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
 
getValue() - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
 
getValue() - Method in interface za.co.wethinkcode.robots.shared.Argument
Get the value of @param
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.direction
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.name
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
 
getValue() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
 
getVisibilityInKliks() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Gets visbility for this world state as measured in kliks
getWhenCaptured() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Gets when this worldState was made
getWhenCapturedAt() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Getter for when a WorldState is captured
getWhereEverythingIs() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
Obstacles getter
getWorldID() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
WorldID getter
getWorldState() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Gets the worldState that the robot was launched into.
getWorldState() - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Retrieve a new WorldState from the mutableWorld
getWorldState() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldStateIdentity
Standard getter of the World State from this class's Atomic Pointer
getWorldStateIdentity() - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Mostly a utility method to get an identity in two lines.
getX() - Method in class za.co.wethinkcode.robots.shared.Position
 
getY() - Method in class za.co.wethinkcode.robots.shared.Position
 

H

hashCode() - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
 
hashCode() - Method in record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns a hash code value for this object.
hashCode() - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
hashCode() - Method in class za.co.wethinkcode.robots.server.worldinfo.WorldState
How the worlds are hashed.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.direction
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.name
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
Returns a hash code value for this object.
hashCode() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
Returns a hash code value for this object.
hashCode() - Method in class za.co.wethinkcode.robots.shared.Position
 
HelpInfo - Class in za.co.wethinkcode.robots.client
Class for storing all userHelpInfo
HelpInfo() - Constructor for class za.co.wethinkcode.robots.client.HelpInfo
 

I

ImplementedClientCommands - Enum Class in za.co.wethinkcode.robots.shared
Enum of all implemented or in progress serverCommands Covers za.co.wethinkcode.robots.client.commands and za.co.wethinkcode.robots.server.clientCommands
InternalResponseCode - Enum Class in za.co.wethinkcode.robots.shared
Explicit enum for response types
isIn(Position, Position) - Method in class za.co.wethinkcode.robots.shared.Position
 

K

KeyDeserializer() - Constructor for class za.co.wethinkcode.robots.shared.Position.KeyDeserializer
 
KeySerializer() - Constructor for class za.co.wethinkcode.robots.shared.Position.KeySerializer
 
kind() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
Returns the value of the kind record component.
kindArg(RobotKind) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
Creates an instance of a kindArg record class.
KlikGrid - Class in za.co.wethinkcode.robots.server.worldinfo
Data Class that stores information about the KlikGrid.
KlikGrid(int, int) - Constructor for class za.co.wethinkcode.robots.server.worldinfo.KlikGrid
Standard KlikGrid constructor

L

Lake - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
 
LateStateReceivedException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom Exception for if an out of date Mutable WorldState update is received
LateStateReceivedException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.LateStateReceivedException
 
LateStateReceivedException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.LateStateReceivedException
 
LateStateReceivedException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.LateStateReceivedException
 
launch - Enum constant in enum class za.co.wethinkcode.robots.shared.ImplementedClientCommands
LaunchArgumentGroup(Map<String, Argument>) - Constructor for record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
Creates an instance of a LaunchArgumentGroup record class.
LaunchClientCommand - Class in za.co.wethinkcode.robots.server.clientCommands
 
LaunchClientCommand(String, Map<String, Argument>) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand
 
LaunchClientCommand(Map<String, Argument>) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand
 
LaunchClientCommand.LaunchArgumentGroup - Record Class in za.co.wethinkcode.robots.server.clientCommands
Record Class of the arguments needed to launch a robot
LaunchClientCommand.LaunchCommandResult - Class in za.co.wethinkcode.robots.server.clientCommands
 
LaunchCommandRequest - Class in za.co.wethinkcode.robots.client.commands
 
LaunchCommandRequest(String, String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
public constructor for a robot.
LaunchCommandResult(InternalResponseCode, Exception) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
 
LaunchCommandResult(InternalResponseCode, ServerRobot, WorldState, Position) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
 
LaunchCommandServerResponse - Class in za.co.wethinkcode.robots.server.serverResponse
 
LaunchCommandServerResponse() - Constructor for class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
Empty for use in reflection
LaunchCommandServerResponse(LaunchClientCommand.LaunchCommandResult) - Constructor for class za.co.wethinkcode.robots.server.serverResponse.LaunchCommandServerResponse
 
launchSyntax - Static variable in class za.co.wethinkcode.robots.client.HelpInfo
 
look - Enum constant in enum class za.co.wethinkcode.robots.shared.ImplementedClientCommands
LookClientCommand - Class in za.co.wethinkcode.robots.server.clientCommands
 
LookClientCommand(LookCommandRequest) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand
Standard constructor for the Look command from a client before evaluation
LookClientCommand(LookCommandRequest, WorldState, ObjectMapper) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand
Standard constructor for the Look command from a client before evaluation
LookClientCommand.LookClientCommandResult - Class in za.co.wethinkcode.robots.server.clientCommands
Evaluated Result of the look command.
LookClientCommand.LookItem - Record Class in za.co.wethinkcode.robots.server.clientCommands
Record Class that stores a thing being looked at from some target's position
LookClientCommandResult(ServerRobot, WorldState, ObjectMapper) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
 
LookCommandRequest - Class in za.co.wethinkcode.robots.client.commands
Class for requesting a look command be executed
LookCommandRequest() - Constructor for class za.co.wethinkcode.robots.client.commands.LookCommandRequest
 
LookCommandRequest(String, String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.LookCommandRequest
Publicly available constructor for the look command
LookCommandServerResponse - Class in za.co.wethinkcode.robots.server.serverResponse
 
LookCommandServerResponse(ClientSideServerResponse) - Constructor for class za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
 
LookCommandServerResponse(LookClientCommand.LookClientCommandResult) - Constructor for class za.co.wethinkcode.robots.server.serverResponse.LookCommandServerResponse
Constructor for all responses from server to client.
LookItem(Direction, WorldObject.WorldObjectType, Integer) - Constructor for record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Creates an instance of a LookItem record class.

M

main(String[]) - Static method in class za.co.wethinkcode.robots.client.ClientExample
 
main(String[]) - Static method in class za.co.wethinkcode.robots.client.ClientMain
 
main(String[]) - Static method in class za.co.wethinkcode.robots.server.networking.ServerThreadRunnerMain
 
main(String[]) - Static method in class za.co.wethinkcode.robots.server.ServerMultExample
 
main(String[]) - Static method in class za.co.wethinkcode.robots.shared.AppLauncher
 
MALFORMED_REQUEST - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Client side malformed request (400 range)
mapper - Variable in class za.co.wethinkcode.robots.server.networking.ServerSingleThread
 
mapper - Variable in class za.co.wethinkcode.robots.server.ServerExample
 
maximumShieldInHits() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
 
maximumShots - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
maximumShots() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
 
maxShieldStrength - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
Mountain - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
 
MutableWorld - Class in za.co.wethinkcode.robots.server.worldinfo
The Mutable singleton of the world.
MutableWorld() - Constructor for class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
 

N

name - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
name(String) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.name
Creates an instance of a name record class.
name() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
 
name() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.name
Returns the value of the name record component.
NameTakenException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom exception for a taken name
NameTakenException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.NameTakenException
 
NameTakenException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.NameTakenException
 
NameTakenException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.NameTakenException
 
NORMAL - Enum constant in enum class za.co.wethinkcode.robots.shared.RobotStatus
Standard state of a robot
NORTH - Enum constant in enum class za.co.wethinkcode.robots.shared.Direction
North direction of the world
NoSuchRobotException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom exception for trying to access a robot that doesn't exist.
NoSuchRobotException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.NoSuchRobotException
 
NoSuchRobotException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.NoSuchRobotException
 
NoSuchRobotException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.NoSuchRobotException
 

O

ObjectNonExistantException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom Exception for trying to update the Position of an object that doesn't exist
ObjectNonExistantException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.ObjectNonExistantException
 
ObjectNonExistantException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.ObjectNonExistantException
 
ObjectNonExistantException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.ObjectNonExistantException
 
Obstacle - Class in za.co.wethinkcode.robots.server.worldinfo
Abstract Class that All Obstacles derive from
Obstacle(Obstacle.ObstacleType, Position) - Constructor for class za.co.wethinkcode.robots.server.worldinfo.Obstacle
Standard Obstacle Constructor
OBSTACLE - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.WorldObject.WorldObjectType
Obstacles like squares, mountains etc
Obstacle.ObstacleType - Enum Class in za.co.wethinkcode.robots.server.worldinfo
Enum encapsulating all Possible Obstacle Types
obstacleType - Variable in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
 
OccupiedSpotException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom exception for trying to add an object to an occupied spot.
OccupiedSpotException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.OccupiedSpotException
 
OccupiedSpotException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.OccupiedSpotException
 
OccupiedSpotException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.OccupiedSpotException
 
OK - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
200 range internal response
OK - Enum constant in enum class za.co.wethinkcode.robots.shared.ServerResponse.ServerResponseCode
200 response

P

parseRoundTrip(ClientCommandRequest, String, ObjectMapper) - Method in class za.co.wethinkcode.robots.client.ClientState
Parse a client request response roundtrip
ParsingFailedException - Exception Class in za.co.wethinkcode.robots.client.errors
Exception for a failure to parse JSON in an unexpected way.
ParsingFailedException() - Constructor for exception class za.co.wethinkcode.robots.client.errors.ParsingFailedException
 
ParsingFailedException(String) - Constructor for exception class za.co.wethinkcode.robots.client.errors.ParsingFailedException
 
ParsingFailedException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.client.errors.ParsingFailedException
 
PORT - Static variable in class za.co.wethinkcode.robots.server.networking.ServerSingleThread
 
PORT - Static variable in class za.co.wethinkcode.robots.server.ServerExample
 
position - Variable in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
 
position() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns the value of the position record component.
Position - Class in za.co.wethinkcode.robots.shared
Standard Position class covering where a WorldObject is
Position(int, int) - Constructor for class za.co.wethinkcode.robots.shared.Position
 
Position.KeyDeserializer - Class in za.co.wethinkcode.robots.shared
 
Position.KeySerializer - Class in za.co.wethinkcode.robots.shared
 

Q

QuitCommand - Class in za.co.wethinkcode.robots.server.serverCommands
 
QuitCommand(String[]) - Constructor for class za.co.wethinkcode.robots.server.serverCommands.QuitCommand
 

R

RELOAD - Enum constant in enum class za.co.wethinkcode.robots.shared.RobotStatus
This robot is busy reloading
reloadArg(Integer) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
Creates an instance of a reloadArg record class.
reloadTimeInSeconds() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
Returns the value of the reloadTimeInSeconds record component.
REPAIR - Enum constant in enum class za.co.wethinkcode.robots.shared.RobotStatus
This robot is busy repairing itself
repairArg(Integer) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
Creates an instance of a repairArg record class.
repairTimeInSeconds() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
Returns the value of the repairTimeInSeconds record component.
replaceObjectAtPosition(WorldObject, Position) - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Destructively add an object at a position
request() - Method in record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Returns the value of the request record component.
RequestRoundTrip(ClientCommandRequest, ServerResponse) - Constructor for record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Creates an instance of a RequestRoundTrip record class.
response() - Method in record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Returns the value of the response record component.
ResponseBuilder - Class in za.co.wethinkcode.robots.server.serverResponse
Builder pattern for building responses
ResponseBuilder() - Constructor for class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
 
responseCode - Variable in class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
 
Robot - Interface in za.co.wethinkcode.robots.shared
the abstract Robot interface that both the client and server robot inherit from
ROBOT - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.WorldObject.WorldObjectType
A robot that you can see
robotKind - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
robotKind() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
 
RobotKind - Enum Class in za.co.wethinkcode.robots.shared
Enum covering all supported kinds of robots
RobotsCommand - Class in za.co.wethinkcode.robots.server.serverCommands
 
RobotsCommand(String[]) - Constructor for class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand
 
RobotsCommand.RobotsCommandResult - Class in za.co.wethinkcode.robots.server.serverCommands
 
RobotsCommandResult(WorldState) - Constructor for class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand.RobotsCommandResult
 
robotState - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
RobotState - Record Class in za.co.wethinkcode.robots.server.serverRobot
Record class for capturing a Robot's state
RobotState(Position, Direction, Integer, Integer, RobotStatus) - Constructor for record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Creates an instance of a RobotState record class.
RobotStatus - Enum Class in za.co.wethinkcode.robots.shared
Enum storing the different kinds of robot states
RobotWorldObjectMapper - Class in za.co.wethinkcode.robots.shared
Configuration class for the rules of the objectMapper we use
RobotWorldObjectMapper() - Constructor for class za.co.wethinkcode.robots.shared.RobotWorldObjectMapper
 
run() - Method in class za.co.wethinkcode.robots.server.ServerExample
 

S

serialize(Position, JsonGenerator, SerializerProvider) - Method in class za.co.wethinkcode.robots.shared.Position.KeySerializer
 
SERVER_ERROR - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Unspecified server error (500 range)
SERVER_FULL - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
The server is full
ServerBotFactory - Class in za.co.wethinkcode.robots.server.serverRobot
Factory pattern for creating ServerRobots
ServerBotFactory() - Constructor for class za.co.wethinkcode.robots.server.serverRobot.ServerBotFactory
Empty constructor for this factory
ServerCommand - Class in za.co.wethinkcode.robots.server.serverCommands
 
ServerCommand() - Constructor for class za.co.wethinkcode.robots.server.serverCommands.ServerCommand
 
ServerCommandFactory - Class in za.co.wethinkcode.robots.server.serverCommands
 
ServerCommandFactory() - Constructor for class za.co.wethinkcode.robots.server.serverCommands.ServerCommandFactory
 
ServerExample - Class in za.co.wethinkcode.robots.server
 
ServerExample(Socket) - Constructor for class za.co.wethinkcode.robots.server.ServerExample
 
ServerMultExample - Class in za.co.wethinkcode.robots.server
 
ServerMultExample() - Constructor for class za.co.wethinkcode.robots.server.ServerMultExample
 
ServerResponse - Interface in za.co.wethinkcode.robots.shared
Interface that abstracts the relationship between all responses by the server to the client
ServerResponse.ServerResponseCode - Enum Class in za.co.wethinkcode.robots.shared
Enum for the Response Code that gets send back by the server
ServerResponseFactory - Class in za.co.wethinkcode.robots.server.serverResponse
Factory pattern that allows creation of more
ServerResponseFactory() - Constructor for class za.co.wethinkcode.robots.server.serverResponse.ServerResponseFactory
 
ServerRobot - Class in za.co.wethinkcode.robots.server.serverRobot
Server ClientRobot class.
ServerRobot() - Constructor for class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Empty Constructor for the server robots
ServerRobot(String, RobotKind, Integer, Integer) - Constructor for class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Constructor overload for building a Server robot from its kind, shieldStrength and Maximum shots
ServerRobot(String, RobotKind, Integer, Integer, WorldState) - Constructor for class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Best constructor for server side bots that allows for spawn finding
ServerRobotFailedException - Exception Class in za.co.wethinkcode.robots.client.errors
Exception for a failure to create a Robot on the server side
ServerRobotFailedException() - Constructor for exception class za.co.wethinkcode.robots.client.errors.ServerRobotFailedException
 
ServerRobotFailedException(String) - Constructor for exception class za.co.wethinkcode.robots.client.errors.ServerRobotFailedException
 
ServerRobotFailedException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.client.errors.ServerRobotFailedException
 
ServerSingleThread - Class in za.co.wethinkcode.robots.server.networking
This is a single thread execution of server logic.
ServerSingleThread(Socket, ClientCommandFactory, WorldStateIdentity) - Constructor for class za.co.wethinkcode.robots.server.networking.ServerSingleThread
Necessary Constructor for shared Mutable State identity
ServerSingleThread(Socket, WorldStateIdentity) - Constructor for class za.co.wethinkcode.robots.server.networking.ServerSingleThread
This is a single thread execution of server logic.
ServerSingleThread(Socket, WorldState, ClientCommandFactory, WorldStateIdentity) - Constructor for class za.co.wethinkcode.robots.server.networking.ServerSingleThread
Constructor OverLoad for the single Thread execution of server Logic.
ServerThreadRunnerMain - Class in za.co.wethinkcode.robots.server.networking
This is the main entry class of the server.
ServerThreadRunnerMain() - Constructor for class za.co.wethinkcode.robots.server.networking.ServerThreadRunnerMain
 
setArguments(String[]) - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
Setter for all the arguments of a launch command from a string array
setCurrentRobotFromName(String) - Method in class za.co.wethinkcode.robots.client.ClientState
Set the current robot based on its name
setCurrentTarget(ClientRobot) - Method in class za.co.wethinkcode.robots.client.ClientState
Setter for the currentTarget in the memory of this session
setData(Map<String, Object>) - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
 
setInternalResponseCode(InternalResponseCode) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Setter for the internal response code
setMessage(String) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Setter for the message
setMessage(String) - Method in class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
Sets the message of this server response
setResponseCode(ServerResponse.ServerResponseCode) - Method in class za.co.wethinkcode.robots.server.serverResponse.ResponseBuilder
Setter for the response code of this server response
setRobot(String) - Method in class za.co.wethinkcode.robots.client.commands.LaunchCommandRequest
 
setRobotStatus(RobotStatus) - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Setter for a server robot's status
setState(RobotState) - Method in class za.co.wethinkcode.robots.client.ClientSideServerResponse
 
setState(RobotState) - Method in class za.co.wethinkcode.robots.server.errors.ErrorResponseBuilder
Setter for the State of the robot
setState(RobotState) - Method in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
Easy setter for updating a robot's state
setStatus(RobotStatus) - Method in class za.co.wethinkcode.robots.client.clientRobot.ClientRobot
Setter for the robot's status
shields() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns the value of the shields record component.
shields() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
Returns the value of the shields record component.
shieldsArg(Integer) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
Creates an instance of a shieldsArg record class.
shots() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns the value of the shots record component.
shots() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
Returns the value of the shots record component.
shotsArg(Integer) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
Creates an instance of a shotsArg record class.
simpleString() - Method in class za.co.wethinkcode.robots.shared.Position
 
SOUTH - Enum constant in enum class za.co.wethinkcode.robots.shared.Direction
Southern direction of the world
spawn(Position) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
Creates an instance of a spawn record class.
spawn() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
Returns the value of the spawn record component.
Square - Enum constant in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
 
SquareObstacle - Class in za.co.wethinkcode.robots.server.worldinfo
Square Obstacle extends the Standard Obstacle
SquareObstacle(Position) - Constructor for class za.co.wethinkcode.robots.server.worldinfo.SquareObstacle
Standard constructor for a Square obstacle
start(Stage) - Method in class za.co.wethinkcode.robots.shared.AppLauncher
 
state - Enum constant in enum class za.co.wethinkcode.robots.shared.ImplementedClientCommands
StateClientCommand - Class in za.co.wethinkcode.robots.server.clientCommands
 
StateClientCommand(StateCommandRequest) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand
 
StateClientCommand(StateCommandRequest, WorldState, ObjectMapper) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand
Standard constructor for the state command from a client before evaluation
StateClientCommand.StateCommandResult - Class in za.co.wethinkcode.robots.server.clientCommands
 
StateCommandRequest - Class in za.co.wethinkcode.robots.client.commands
Class for requesting a state command be executed
StateCommandRequest() - Constructor for class za.co.wethinkcode.robots.client.commands.StateCommandRequest
Empty Constructor for reflection
StateCommandRequest(String, String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.StateCommandRequest
 
StateCommandRequest(String, ImplementedClientCommands, String[]) - Constructor for class za.co.wethinkcode.robots.client.commands.StateCommandRequest
Standard constructor for a Client Requesting that a command be executed
StateCommandResult(ServerRobot, WorldState, ObjectMapper) - Constructor for class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
 
Stateful - Interface in za.co.wethinkcode.robots.server.clientCommands
Interface that implies that a commandResult will change the state of the mutable world.
StateServerResponse - Class in za.co.wethinkcode.robots.server.serverResponse
 
StateServerResponse(StateClientCommand.StateCommandResult) - Constructor for class za.co.wethinkcode.robots.server.serverResponse.StateServerResponse
 
status() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns the value of the status record component.
supportedCommands - Static variable in class za.co.wethinkcode.robots.client.HelpInfo
 

T

TIMEOUT - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Server timeout.
toJson() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
Jackson serialisation string
toJson() - Method in class za.co.wethinkcode.robots.server.serverCommands.DumpCommandResult
Jackson serialisation string
toJson() - Method in class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand.RobotsCommandResult
Jackson serialisation string
toString() - Method in record class za.co.wethinkcode.robots.client.ClientState.RequestRoundTrip
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchArgumentGroup
Returns a string representation of this record class.
toString() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
Standard toString for developer use
toString() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.server.serverRobot.RobotState
Returns a string representation of this record class.
toString() - Method in class za.co.wethinkcode.robots.server.worldinfo.Obstacle
String version of an obstacle
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.direction
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.kindArg
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.name
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.reloadArg
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.repairArg
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shieldsArg
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.shotsArg
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.spawn
Returns a string representation of this record class.
toString() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
Returns a string representation of this record class.
toString() - Method in interface za.co.wethinkcode.robots.shared.CommandResult
Standard toString for developer use
toString() - Method in class za.co.wethinkcode.robots.shared.Position
 
type() - Method in record class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookItem
Returns the value of the type record component.

U

UNSUPPORTED_COMMAND - Enum constant in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Client's request is not supported (also 400 range)
updateObjectPosition(WorldObject, Position) - Method in class za.co.wethinkcode.robots.server.worldinfo.MutableWorld
Update the position of a world object that already exists in the world

V

validateInput(String) - Method in class za.co.wethinkcode.robots.client.commands.ClientInputValidate
 
validateLaunch(String) - Method in class za.co.wethinkcode.robots.client.commands.ClientInputValidate
Specific utility for validating launch as a first command
validatePartialInput(String) - Method in class za.co.wethinkcode.robots.client.commands.ClientInputValidate
 
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.server.worldinfo.WorldObject.WorldObjectType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.Direction
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.ImplementedClientCommands
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.RobotKind
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.RobotStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class za.co.wethinkcode.robots.shared.ServerResponse.ServerResponseCode
Returns the enum constant of this class with the specified name.
values() - Static method in enum class za.co.wethinkcode.robots.server.worldinfo.Obstacle.ObstacleType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.server.worldinfo.WorldObject.WorldObjectType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.Direction
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.ImplementedClientCommands
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.InternalResponseCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.RobotKind
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.RobotStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class za.co.wethinkcode.robots.shared.ServerResponse.ServerResponseCode
Returns an array containing the constants of this enum class, in the order they are declared.
visibilityArg(Integer) - Constructor for record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
Creates an instance of a visibilityArg record class.
visibilityInKliks() - Method in record class za.co.wethinkcode.robots.shared.arguments.Args.visibilityArg
Returns the value of the visibilityInKliks record component.

W

WEST - Enum constant in enum class za.co.wethinkcode.robots.shared.Direction
Western direction of the world
WorldFullException - Exception Class in za.co.wethinkcode.robots.server.errors
Custom Exception for handling a full world
WorldFullException() - Constructor for exception class za.co.wethinkcode.robots.server.errors.WorldFullException
 
WorldFullException(String) - Constructor for exception class za.co.wethinkcode.robots.server.errors.WorldFullException
 
WorldFullException(String, Throwable) - Constructor for exception class za.co.wethinkcode.robots.server.errors.WorldFullException
 
WorldObject - Interface in za.co.wethinkcode.robots.server.worldinfo
 
WorldObject.WorldObjectType - Enum Class in za.co.wethinkcode.robots.server.worldinfo
Enum storing all the types of obstacles found in the world
worldObjectType - Variable in class za.co.wethinkcode.robots.server.serverRobot.ServerRobot
 
WorldState - Class in za.co.wethinkcode.robots.server.worldinfo
A super class that stores a lot of information about the WorldState
WorldState(String, String, int, int, int, int, ArrayList<Obstacle>, ArrayList<Client>, KlikGrid, DualHashBidiMap<Position, WorldObject>) - Constructor for class za.co.wethinkcode.robots.server.worldinfo.WorldState
Iteration1 WorldState Constructor.
WorldStateIdentity - Class in za.co.wethinkcode.robots.server.worldinfo
Pointer Class that holds the lastest WorldState and gracefully applies the compare and swap algorithm
WorldStateIdentity(AtomicReference<WorldState>) - Constructor for class za.co.wethinkcode.robots.server.worldinfo.WorldStateIdentity
Constructor for this WorldState Identity
writeToDisk() - Method in class za.co.wethinkcode.robots.server.clientCommands.LaunchClientCommand.LaunchCommandResult
Allows us to write our output to disk
writeToDisk() - Method in class za.co.wethinkcode.robots.server.clientCommands.LookClientCommand.LookClientCommandResult
Allows us to write our output to disk
writeToDisk() - Method in class za.co.wethinkcode.robots.server.clientCommands.StateClientCommand.StateCommandResult
Allows us to write our output to disk
writeToDisk() - Method in class za.co.wethinkcode.robots.server.errors.ErrorCommandResult
Allows us to write our output to disk
writeToDisk() - Method in class za.co.wethinkcode.robots.server.serverCommands.DumpCommandResult
Allows us to write our output to disk
writeToDisk() - Method in class za.co.wethinkcode.robots.server.serverCommands.RobotsCommand.RobotsCommandResult
Allows us to write our output to disk
writeToDisk() - Method in interface za.co.wethinkcode.robots.shared.CommandResult
Allows us to write our output to disk

Z

za.co.wethinkcode.robots - package za.co.wethinkcode.robots
The robot worlds package for CPT025 Group 7
za.co.wethinkcode.robots.client - package za.co.wethinkcode.robots.client
All classes and subpackages in this package are used by the client binary.
za.co.wethinkcode.robots.client.clientRobot - package za.co.wethinkcode.robots.client.clientRobot
Classes in this package are focused on helping the client robot work
za.co.wethinkcode.robots.client.commands - package za.co.wethinkcode.robots.client.commands
Classes for Client side requests for a command to be executed on the server
za.co.wethinkcode.robots.client.errors - package za.co.wethinkcode.robots.client.errors
This package contains client specific errors
za.co.wethinkcode.robots.server - package za.co.wethinkcode.robots.server
Classes contained in this package contain all the behaviour of the server
za.co.wethinkcode.robots.server.clientCommands - package za.co.wethinkcode.robots.server.clientCommands
This package encapsulates the behavior of all commands sent by a client to be executed on the server Their unevaluated and evaluated versions are contained here.
za.co.wethinkcode.robots.server.errors - package za.co.wethinkcode.robots.server.errors
This package contains classes that encapsulate internal server error handling
za.co.wethinkcode.robots.server.networking - package za.co.wethinkcode.robots.server.networking
This package encapsulates the main entry point of the server, along with the logic of a single thread
za.co.wethinkcode.robots.server.serverCommands - package za.co.wethinkcode.robots.server.serverCommands
This package contains the functionality of all server specific commands
za.co.wethinkcode.robots.server.serverResponse - package za.co.wethinkcode.robots.server.serverResponse
This package contains all the responses that the server gives back to the client
za.co.wethinkcode.robots.server.serverRobot - package za.co.wethinkcode.robots.server.serverRobot
All classes in this package manage how robots work on the serverside
za.co.wethinkcode.robots.server.worldinfo - package za.co.wethinkcode.robots.server.worldinfo
Classes that store info about how the world is created and managed
za.co.wethinkcode.robots.shared - package za.co.wethinkcode.robots.shared
This package contains all classes shared between the server and client binary It primarily contains enums and interfaces
za.co.wethinkcode.robots.shared.arguments - package za.co.wethinkcode.robots.shared.arguments
This package contains classes and records the fulfill the Argument interface
A B C D E G H I K L M N O P Q R S T U V W Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form