|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPhase
A signal phase (also called a "stage"), which represents set of traffic and pedestrian movements which are given a "go" signal for a fixed or variable period of time.
| Field Summary | |
|---|---|
static String |
IX_PHASE_SEPARATOR
|
static IPhase[] |
ZERO
|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
addToPlans(IUndoStack us)
|
void |
adjust(double[] da)
Set an array of adjustments (of size J) that will be applied over the next J phases |
IPhase[] |
associate()
Return any associate phase, for example phase D might return { D1, D2, } |
IPhase |
associateBus()
Return any associated bus phase |
double |
cancel(int cycles)
Phase was extended, but now extension should be terminated. |
IController |
controller()
The signal controller which controls this phase |
boolean |
delete(IUndoStack us)
|
double |
elapsed()
Returns the elapsed time for this (running) phase. |
void |
elapsed(double d)
Set the elapsed time for this (running) phase. |
double |
expired()
Deprecated. use elapsed() |
void |
expired(double d)
Deprecated. use elapsed() |
int |
extend(double ext,
int cycles)
Extend the phase by the given extension, balancing this by reducing the same phase over given number of subsequent cycles. |
boolean |
extending()
Return true if this phase is extending because of the actions of a rule |
double |
extension()
Return the time extension currently applying to this phase. |
IGapOutData |
gapOut()
Return the (playback) gap-out data for this phase |
double |
green()
Returns the stored green time for this phase |
void |
green(double t)
Set the stored green time for this phase |
int |
index()
An index number for this phase, in the range 1..N. |
IIntersection |
intersection()
The intersection to which this phase applies |
boolean |
isRunning()
Returns true if this phase is currently running |
void |
isRunning(boolean b)
|
String |
letterStr()
The "name" of this phase, such as "A" or "D1". |
double |
maximum()
Returns the maximum green time for this phase |
double |
minimum()
Returns the minimum green time for this phase |
double |
nextGreen()
Return the next green time after any adjustment that will be made |
double |
nextGreenShift()
Make adjustment[0], shift adjustment array and return the (adjusted) next green time |
boolean |
onGreen()
|
double |
red()
Returns the stored red time for this phase |
void |
red(double t)
Set the stored red time for this phase |
double |
remaining()
Returns the remaining (green) run-time for this (running) phase. |
void |
remaining(double t)
|
double |
remainingRed()
Returns the remaining red (inter-green) run-time for this (running) phase. |
double |
remainingYellow()
Returns the remaining yellow run-time for this (running) phase. |
void |
reset()
Extension and rebalancing are finished. |
void |
rewind()
|
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()
Get the signal state for this phase; valid values are { GREEN, YELLOW, RED } |
Signal |
signal(IGroup group)
Get the signal for the given group when this phase is running; valid values are { GREEN, RED, OFF } |
void |
signal(IGroup group,
Signal signal)
Set the signal for the given group when this phase is running; valid values are { GREEN, RED, OFF } |
void |
signal(Signal setSignal,
IPhase nextPhase)
Set the signal state for this phase; valid values are { GREEN, YELLOW, RED } |
Signal[] |
signalArray()
Get the signals for all groups on the controller when this phase is running; valid values are { GREEN, RED, OFF } |
void |
signalArray(Signal[] pa)
Set the signals for all groups on the controller when this phase is running; valid values are { GREEN, RED, OFF } |
boolean |
stretch()
Returns true if this phase has been designated as the stretch phase. |
boolean |
stretchDynamic()
Returns True if this phase is temporarily stretchable - a parameter that can be changed dynamically, and is not saved with the phase |
void |
stretchDynamic(boolean b)
Allow this phase to stretch, but do not save the setting in the file. |
boolean |
stretchStatic()
Returns True if this phase is permanently stretchable - this is a parameter saved with the phase |
boolean |
terminating()
Returns true if this phase is going to terminate soon because of a rule |
void |
terminating(boolean b)
|
void |
tick(double tick)
|
double |
yellow()
Returns the stored yellow time for this phase |
void |
yellow(double t)
Set the stored yellow time for this phase |
| 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 IPhase[] ZERO
static final String IX_PHASE_SEPARATOR
| Method Detail |
|---|
IIntersection intersection()
IController controller()
void signalArray(Signal[] pa)
Signal[] signalArray()
Signal signal(IGroup group)
void signal(IGroup group,
Signal signal)
void signal(Signal setSignal,
IPhase nextPhase)
Signal signal()
int index()
String letterStr()
boolean isRunning()
boolean stretch()
boolean stretchStatic()
boolean stretchDynamic()
double expired()
void expired(double d)
double elapsed()
void elapsed(double d)
double remaining()
double remainingYellow()
double remainingRed()
double minimum()
double maximum()
void isRunning(boolean b)
void remaining(double t)
int extend(double ext,
int cycles)
double cancel(int cycles)
void reset()
double green()
double yellow()
double red()
void green(double t)
void yellow(double t)
void red(double t)
double nextGreenShift()
double nextGreen()
void adjust(double[] da)
void rewind()
boolean onGreen()
IPhase[] associate()
IPhase associateBus()
IGapOutData gapOut()
boolean selected()
void selected(boolean b)
boolean terminating()
void terminating(boolean b)
void stretchDynamic(boolean b)
boolean extending()
double extension()
void tick(double tick)
void addToPlans(IUndoStack us)
boolean delete(IUndoStack us)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||