|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IController
A Controller is used to control traffic signals at a signalised intersection.
A controller can be positioned as appropriate for viewing by the user.
A controller holds references to groups, phases and loops that
are used for traffic control.
A controller controls a single intersection, but an intersection can contain any number of nodes, separated by links.
| Field Summary | |
|---|---|
static IController[] |
ZERO
|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
IUndoable |
addGroup(IUndoStack us,
IGroup group)
|
IUndoable |
addLoop(IUndoStack us,
ILoop loop)
|
IUndoable |
addPhase(IUndoStack us,
IPhase phase)
|
IControllerLogic |
controllerLogic()
|
void |
controllerLogic(IControllerLogic cl)
|
boolean |
controlsPeds()
Returns true if this controller controls pedestrians |
IPhase |
currentPhase()
Returns the current running phase |
void |
currentPhase(IPhase phase)
Set the current phase to the given phase |
IPlan |
currentPlan()
Returns the current signal plan, defining the phase order, offset time and split times (the green times for each phase) |
void |
currentPlan(IPlan plan)
Set the current signal plan |
IUndoable |
delGroup(IUndoStack us,
IGroup group)
|
IUndoable |
delLoop(IUndoStack us,
ILoop loop)
|
IUndoable |
delPhase(IUndoStack us,
IPhase phase)
|
void |
delPhases()
|
boolean |
externalControl()
Returns true if this controller takes group or phase change messages from an external controller (e.g. |
void |
externalControl(boolean b)
Set to true if this controller takes group or phase change messages from an external controller (e.g. |
void |
externalControllerTakesOver(IExternalController controller)
|
IGroup |
group(int index)
Return the group with the given index, or null, if no group exists with that index |
IGroup[] |
groups()
Returns an array of all groups on this intersection |
IIntersection |
intersection()
The intersection controlled by this controller |
boolean |
isRunning(int phase)
Returns true if the [1.N] numbered phase is currently running |
ILoop[] |
loops()
Return an array of the loops connected to this controller |
IXyz |
ne()
The north-east corner of the box used to draw the phases and groups |
IPhase |
phase(int index0)
Returns the phase with the given index [0..N-1] |
IPhase |
phaseFromCurrentGroups()
Return the phase that matches the currently active groups (used when an external controller is setting groups directly ) |
IPhase[] |
phases()
Returns an array of all phases on the intersection |
boolean |
selected()
Returns true if the controller display is selected |
void |
startNextPhase()
|
IXyz |
sw()
The south-west corner of the box used to draw the phases and groups |
void |
sw(IXyz p)
Move the south-west corner of the box to the given point |
void |
turnsChanged()
|
| 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 IController[] ZERO
| Method Detail |
|---|
IXyz sw()
void sw(IXyz p)
IXyz ne()
IIntersection intersection()
boolean controlsPeds()
boolean externalControl()
void externalControl(boolean b)
void externalControllerTakesOver(IExternalController controller)
IControllerLogic controllerLogic()
void controllerLogic(IControllerLogic cl)
IGroup[] groups()
IPhase[] phases()
IPhase phase(int index0)
void currentPlan(IPlan plan)
IPlan currentPlan()
void startNextPhase()
IPhase currentPhase()
IPhase phaseFromCurrentGroups()
void currentPhase(IPhase phase)
boolean isRunning(int phase)
ILoop[] loops()
IGroup group(int index)
IUndoable addGroup(IUndoStack us,
IGroup group)
IUndoable delGroup(IUndoStack us,
IGroup group)
IUndoable addPhase(IUndoStack us,
IPhase phase)
IUndoable delPhase(IUndoStack us,
IPhase phase)
void delPhases()
IUndoable addLoop(IUndoStack us,
ILoop loop)
IUndoable delLoop(IUndoStack us,
ILoop loop)
boolean selected()
void turnsChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||