|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRestrictable
A common base interface for parts of a route that may be restricted, such as lanes, turns, walkways and courses
| Method Summary | |
|---|---|
boolean |
allows(IBehaviour b,
boolean atEnd)
Returns true if this route segment allows the passage of the given behaviour. |
boolean |
allows(IType type,
boolean atEnd)
Returns true if this route segment allows the passage of the given type. |
boolean |
closed()
True if closed. |
void |
closed(boolean closed)
Set this route segment to be closed. |
IRestriction[] |
multipleRestrictions()
Return all restrictions that may apply to this way |
void |
multipleRestrictions(IRestriction[] mra)
Set an array of restrictions on this segment. |
String |
name()
The name of this restrictable object |
IRestriction |
restriction()
Returns any current restriction for this way, or null for no restriction. |
void |
restriction(IRestriction restriction)
Set the restriction on this route segment. |
int |
restrictionIndex()
Return 0 for no restriction, 1..N for a restriction or -1 for closed. |
| Method Detail |
|---|
String name()
boolean closed()
IRestriction restriction()
int restrictionIndex()
IRestriction[] multipleRestrictions()
boolean allows(IType type,
boolean atEnd)
boolean allows(IBehaviour b,
boolean atEnd)
void closed(boolean closed)
void restriction(IRestriction restriction)
void multipleRestrictions(IRestriction[] mra)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||