public class MoveValidator extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ArrayList<Annotation> |
moves
Moves list used for validation.
|
(package private) String |
report
Shows report in words of validation calculation if conflict is present.
|
(package private) boolean |
validity
Validation attribute.
|
Constructor and Description |
---|
MoveValidator() |
Modifier and Type | Method and Description |
---|---|
void |
addMove(Annotation move)
Adds move to sequence of moves.
|
static boolean |
checkAgentState(AgentModel model,
Annotation annotation)
Validation for annotation move.
|
String |
getReport()
TODO: Replace with purpose of method.
|
boolean |
getValidity()
Returns current validity.
|
void |
reset()
Resets values, sets validity to true and report to empty string.
|
static boolean |
sequenceCheck(Annotation first,
Annotation second)
Validation for sequence of two annotation moves.
|
void |
sequenceCheckFull() |
void |
setMoves(ArrayList<Annotation> moves) |
ArrayList<Annotation> moves
String report
boolean validity
public void sequenceCheckFull()
public static boolean sequenceCheck(Annotation first, Annotation second)
first
- second
- public static boolean checkAgentState(AgentModel model, Annotation annotation)
model
- annotation
- public void setMoves(ArrayList<Annotation> moves)
public void addMove(Annotation move)
move
- public boolean getValidity()
public String getReport()
public void reset()