|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGroup
A signal group. This is used to identify one or more Turns (traffic movements) or Walks (pedestrian movements) that are controlled by a single traffic signal command. Each group has an index number, which is unique on the intersection. On many intersections, group numbers start at 1 and are sequential but neither of these conditions are guaranteed at any locations. In general pedestrian group numbers are all higher numbers than all traffic movement groups, but this also cannot be guaranteed.
For example, at a 4-way intersection aligned with the compass, Group 1 might be for E-W and W-E traffic, Group 2 might be for E-N and W-S traffic, and Group 8 might be for the pedestrian walks on both E and W approaches
| Field Summary | |
|---|---|
static String |
IX_GROUP_SEP
|
static IGroup[] |
ZERO
|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
addTurn(ITurn turn)
Add the given turn to the array of turns for this group |
boolean |
canGoOff()
Returns true if this group can go to the OFF state. |
void |
canGoOff(boolean v)
Set to true if this group can go to the OFF state |
IController |
controller()
The controller to which this group belongs |
boolean |
delete(IUndoStack us)
|
void |
delTurn(ITurn turn)
Delete the given turn from this group |
boolean |
flash()
Deprecated. use signalFlashing() |
int |
index()
The index of this group, a positive number. |
void |
index(int i)
Set the index of this group, a positive number |
Signal |
initialSignal()
The initial signal state on this group |
void |
initialSignal(Signal signal)
Set the initial signal state on this group |
IIntersection |
intersection()
The intersection on which this group operates |
boolean |
isSelected()
Deprecated. use logging |
void |
isSelected(boolean b)
Deprecated. use logging |
boolean |
logging()
Returns true if group has been selected for logging |
void |
logging(boolean v)
Set to true to log information for this group |
Signal |
priInitial()
Deprecated. use initialSignal() |
void |
priInitial(Signal signal)
Deprecated. use initialSignal() |
boolean |
scramble()
Returns true if this is an all-walks or "scramble" phase, where no traffic is moving, and all pedestrian walks are at green. |
void |
scramble(boolean b)
Set this to true to make this pedestrian group a "scramble" phase, where no traffic is moving, and all pedestrian walks are at green. |
boolean |
selected()
Returns true if this group is selected in the user interface |
void |
selected(boolean b)
Select this group for highlight in the user interface |
Signal |
signal()
The currently active signal state for this group (Red, Green, Off, etc) |
void |
signal(Signal p)
Set all streams in this group to the given priority, but note that a stream may be contained in more than one group, so if you are using this method, make sure the group going to Red is set before the group going to Green |
void |
signal(Signal p,
SignalColour colour,
boolean flashing)
|
SignalColour |
signalColour()
|
boolean |
signalFlashing()
Returns true if the signal currently active for the group is flashing. |
ITurn[] |
turns()
An array of turns for this group, including those that have this group as a filter (secondary) |
int |
walkID()
The walk ID number, valid only if this is a pedestrian group. |
void |
walkID(int i)
Set the walk ID number, valid only if this is a pedestrian group. |
| 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 IGroup[] ZERO
static final String IX_GROUP_SEP
| Method Detail |
|---|
int index()
void index(int i)
IIntersection intersection()
IController controller()
ITurn[] turns()
Signal signal()
void signal(Signal p)
void signal(Signal p,
SignalColour colour,
boolean flashing)
SignalColour signalColour()
boolean signalFlashing()
boolean logging()
void logging(boolean v)
boolean isSelected()
void isSelected(boolean b)
void addTurn(ITurn turn)
void delTurn(ITurn turn)
boolean canGoOff()
void canGoOff(boolean v)
boolean flash()
boolean scramble()
void scramble(boolean b)
int walkID()
void walkID(int i)
Signal priInitial()
void priInitial(Signal signal)
Signal initialSignal()
void initialSignal(Signal signal)
boolean delete(IUndoStack us)
boolean selected()
void selected(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||