public class Landmark extends Object implements Validatable
In its minimal form it consists of a preposition and a Location, e.g.
"before the public transport stop".
| Constructor and Description |
|---|
Landmark() |
| Modifier and Type | Method and Description |
|---|---|
static Landmark |
createMinimal(Constants.Preposition preposition,
Location<?> location) |
boolean |
equals(Object obj) |
Map<String,Object> |
getAdditionalInfo() |
Optional<Constants.RelativeDirection> |
getDirection() |
Location<?> |
getLocation() |
Constants.Preposition |
getPreposition() |
int |
hashCode() |
Landmark |
setAdditionalInfo(Map<String,Object> additionalInfo) |
Landmark |
setDirection(Constants.RelativeDirection direction) |
Landmark |
setLocation(Location<?> location) |
Landmark |
setPreposition(Constants.Preposition preposition) |
Landmark |
shallowCopy() |
String |
toString() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
public Constants.Preposition getPreposition()
Instruction
is valid for)public Location<?> getLocation()
public Optional<Constants.RelativeDirection> getDirection()
Instruction is
valid for)public Landmark setPreposition(Constants.Preposition preposition)
public Landmark setDirection(Constants.RelativeDirection direction)
public static Landmark createMinimal(Constants.Preposition preposition, Location<?> location)
public Landmark shallowCopy()
public void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface ValidatableCopyright © 2018. All rights reserved.