|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITurn
A Turn represents a traffic movement, from an intersection approach link to an intersection exit link. Each turn must have at least one stream.
(Side note for filter turns) If there is a filter lane making a kerb-side turn, and there are no streams making the turn, then there will be no Turn object for that movement.
| Field Summary | |
|---|---|
static char |
DIVIDER
|
static char |
TURN_TO
|
static ITurn[] |
ZERO
A static zero-length array, created for convenience, and to save memory |
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
addStream(IStream m)
|
ITurn[] |
conflictingTurns()
Returns an array of any turns that conflict with this one. |
void |
delStream(IStream m)
|
Equipment |
equipment()
The type of signalling equipment available for this turn |
void |
equipment(Equipment eq)
|
IGroup |
filterGroup()
The filter, or "secondary" group to which this turn belongs. |
void |
filterGroup(IGroup group)
|
Signal |
filterSignal()
The signal state applied when the filter group is active. |
void |
filterSignal(Signal signal)
|
void |
fixed(Signal signal)
|
IGroup |
group()
The "primary" group to which this turn belongs. |
void |
group(IGroup group)
|
boolean |
hasConflict()
Returns true if this turn conflicts with any other. |
IIntersection |
intersection()
The intersection on which this turn occurs |
boolean |
isFixed()
Return true if the signal on this turn never changes [get value from signal()] |
UTime |
lastSignalChange()
The time of the last change of the signal on this turn |
ILink |
linkI()
The inward link leading to this turn - the approach |
ILink |
linkO()
The outward link to which this turn leads |
int |
preference()
Returns the preference level of this turn for directing traffic within a parking zone |
void |
preference(int p)
Set the preference level of this turn for directing traffic within a parking zone |
IRestriction |
restriction()
Any restriction attached to this turn, or null, if none. |
boolean |
selected()
Return true if this object is selected in the GUI |
void |
selected(boolean b)
Set to true to mark this object as being selected in the GUI |
Signal |
signal()
The current signal for this turn |
void |
signal(Signal signal)
|
IStream[] |
streams()
The streams making up this turn |
| Methods inherited from interface com.azalient.api.b.network.IRestrictable |
|---|
allows, allows, closed, closed, multipleRestrictions, multipleRestrictions, name, restriction, restrictionIndex |
| Methods inherited from interface com.azalient.api.file.StoreRecordRW |
|---|
canRename, rename, store |
| Methods inherited from interface com.azalient.api.file.RecordR |
|---|
extraSet, finished, isApplicable, isEditable, set |
| Methods inherited from interface com.azalient.api.a.tables.IRecord |
|---|
name |
| Methods inherited from interface com.azalient.api.file.RecordW |
|---|
extraCols, extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile |
| Field Detail |
|---|
static final char TURN_TO
static final char DIVIDER
static final ITurn[] ZERO
| Method Detail |
|---|
IIntersection intersection()
IStream[] streams()
boolean hasConflict()
ITurn[] conflictingTurns()
Signal signal()
IGroup group()
IGroup filterGroup()
Signal filterSignal()
boolean isFixed()
IRestriction restriction()
restriction in interface IRestrictableEquipment equipment()
ILink linkI()
ILink linkO()
UTime lastSignalChange()
void addStream(IStream m)
void delStream(IStream m)
void group(IGroup group)
void signal(Signal signal)
void filterGroup(IGroup group)
void filterSignal(Signal signal)
void fixed(Signal signal)
void equipment(Equipment eq)
boolean selected()
void selected(boolean b)
int preference()
void preference(int p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||