|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ProtocolError | |
---|---|
ctf.evaluation | Test code |
ctf.evaluation.simulator | Simulator test code |
ctf.evaluation.simulator.data | |
ctf.evaluation.simulator.handshaking | |
ctf.evaluation.simulator.play | Test code for the Play state |
ctf.evaluation.simulator.responses | Replies that the simulator may send us |
ctf.evaluation.simulator.setup |
Uses of ProtocolError in ctf.evaluation |
---|
Methods in ctf.evaluation that throw ProtocolError | |
---|---|
static double |
STEAL.parseFloat(java.lang.String s)
Parse a STEAL floating-point number |
static Point |
Point.parseFromString(java.lang.String s)
|
static int |
STEAL.parseInt(java.lang.String s)
Parse a STEAL integer |
void |
STEALTest.testFloatInt()
Make sure that floating-point numbers are not accepted by parseInt() |
void |
STEALTest.testIntFloat()
Make sure that int-only numbers are not accepted by parseFloat() |
void |
STEALTest.testLargeFloat()
Make sure that large float values are accepted |
void |
STEALTest.testLargeInt()
Make sure that large integer values are accepted |
void |
STEALTest.testNegativeFloat()
Make sure that negative integers are accepted by parseFloat() |
void |
STEALTest.testNegativeInt()
Make sure that negative integers are not accepted by parseInt() |
void |
STEALTest.testNormalFloat()
Make sure that regular floating-point values are accepted |
void |
STEALTest.testNormalInt()
Make sure that regular integer values are accepted |
Uses of ProtocolError in ctf.evaluation.simulator |
---|
Methods in ctf.evaluation.simulator that throw ProtocolError | |
---|---|
void |
ConnectionManager.enterState(ConnectionManager.STEALState state)
Get the controllers into a particular STEAL state. |
Uses of ProtocolError in ctf.evaluation.simulator.data |
---|
Constructors in ctf.evaluation.simulator.data that throw ProtocolError | |
---|---|
Flag(java.lang.String[] tokens)
|
|
Player(java.lang.String[] tokens)
|
|
State(java.lang.String[] tokens)
|
|
Team(java.lang.String[] tokens)
|
|
Time(java.lang.String timeToken)
|
|
Tree(java.lang.String stealString)
|
Uses of ProtocolError in ctf.evaluation.simulator.handshaking |
---|
Methods in ctf.evaluation.simulator.handshaking that throw ProtocolError | |
---|---|
void |
Version.setUp()
Get into the Version state |
void |
Start.setUp()
Set up for a test |
void |
Version.testGarbageString()
A controller sends a garbage string |
void |
Start.testMisspelledStartString()
A team misspells the initialisation string. |
void |
Start.testMisspelledTeamName()
A team misspells its name. |
void |
Version.testNormalVersion()
Normal Version sequence |
void |
Start.testSendingFubar()
A team sends a completely invalid string. |
void |
Version.testStartCommandInVersionState()
A controller sends a Start command in the Version state |
void |
Version.testWrongSTEALVersion()
A controller requests an unsupported STEAL version |
void |
Start.testWrongYear()
A team uses the wrong year. |
Uses of ProtocolError in ctf.evaluation.simulator.play |
---|
Methods in ctf.evaluation.simulator.play that throw ProtocolError | |
---|---|
void |
PlayTestCase.setUp()
Initialize the field with tree, flag and player locations. |
void |
PlayerPositions.setUp()
Initialize the field with tree, flag and player locations. |
void |
PlayerPositions.testDefaultPlacement()
Ensure that players are placed in default locations and orientations |
protected void |
PlayTestCase.turnTo(Connection connection,
Side side,
int player,
double turnTo)
Turn a player to a heading |
Uses of ProtocolError in ctf.evaluation.simulator.responses |
---|
Methods in ctf.evaluation.simulator.responses that throw ProtocolError | |
---|---|
(package private) static Point[] |
TreesResponse.parse(java.lang.String[] tokens)
Parse a Trees response (package-visible for testing purposes) |
Constructors in ctf.evaluation.simulator.responses that throw ProtocolError | |
---|---|
CommandResponse(Connection connection)
|
|
ErrorResponse(Connection connection)
Constructor. |
|
ErrorResponse(Connection connection,
boolean errorIfNotClosed)
Constructor. |
|
ErrorResponses(Connection offender,
Connection innocent)
Constructor. |
|
GameOverException(java.lang.String[] tokens)
Construct from STEAL tokens |
|
GameOverResponse(Connection connection,
GameOverResponse.Result expectedOutcome)
Constructor. |
|
RoundOverException(java.lang.String[] tokens)
Construct from STEAL tokens |
|
SideResponse(Connection connection)
|
|
StateResponse(Connection connection)
|
|
TreesResponse(Connection connection)
Public constructor |
|
VersionResponse(Connection connection)
Constructor. |
Uses of ProtocolError in ctf.evaluation.simulator.setup |
---|
Methods in ctf.evaluation.simulator.setup that throw ProtocolError | |
---|---|
void |
PlaceFlag.setUp()
Get into the PlaceFlag state |
void |
RequestSide.setUp()
Get into the Version state |
void |
PlaceTrees.setUp()
Get into the PlaceTrees state |
void |
PlaceFlag.testBottomEdgeOfTheField()
Flags may not be placed within 1m of the edge of the field |
void |
PlaceTrees.testBottomEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
PlaceFlag.testCentreLine()
Flags may not be placed within 1m of the centre line |
void |
PlaceTrees.testCentreLine()
Trees may not be placed within 1m of the centre line |
void |
PlaceTrees.testCentreToCentreDistance()
Trees may not be placed within 1m of the centre line |
void |
RequestSide.testComplimentaryRequests()
Normal RequestSide sequence, teams request different sides |
void |
PlaceFlag.testFlagOnEnemySide()
A team may not place a flag on the opposing side of the field |
void |
PlaceFlag.testFlagPlayerDistance()
Flags may not be placed within 25m of a player's starting position |
void |
RequestSide.testInvalidSideRequest()
Red asks for an invalid side. |
void |
PlaceFlag.testJail()
A flag may not be placed with 1m of a jail |
void |
PlaceTrees.testJail()
A tree may not be placed with 1m of a jail |
void |
PlaceFlag.testLeftEdgeOfTheField()
Flags may not be placed within 1m of the edge of the field |
void |
PlaceTrees.testLeftEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
PlaceFlag.testNormalPlacement()
Flags are placed in default locations |
void |
PlaceTrees.testNormalPlacement()
Trees are placed in default locations |
void |
PlaceTrees.testPartialPlacement()
After some of a team's trees have been placed, the other team sends a getTrees query. |
void |
PlaceFlag.testRightEdgeOfTheField()
Flags may not be placed within 1m of the edge of the field |
void |
PlaceTrees.testRightEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
RequestSide.testSideContention()
Normal RequestSide sequence, both teams request same side. |
void |
PlaceFlag.testTopEdgeOfTheField()
Flags may not be placed within 1m of the edge of the field |
void |
PlaceTrees.testTopEdgeOfTheField()
Trees may not be placed within 1m of the edge of the field |
void |
PlaceTrees.testTreePlayerDistance()
Trees may not be placed within 1.2m of a player's starting position |
void |
PlaceTrees.testTreesOnEnemySide()
A team may not place a tree on the opposing side of the field |
void |
PlaceFlag.testUnplacedFlag()
If a team's flag has not been placed, the other team should still be able to poll for the current game state; the game time will just be 0. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |