|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStream
A stream connects two lanes across an intersection
| Field Summary | |
|---|---|
static IStream[] |
ZERO
A static zero-length array, created for convenience, and to save memory |
| Fields inherited from interface com.azalient.api.ui.clipboard.IAssociate |
|---|
scratch |
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
add(IMotor v)
Do not use @CommuterInternal |
double |
clearance()
The distance (in m) back from the end of the stream at which the back of a vehicle has cleared the intersection |
IStream[] |
conflictingStreams()
Returns an array of any streams that conflict with this one. |
boolean |
conflictsWith(IStream s)
Returns true if this stream conflicts with the given stream. |
double |
crossGapTime()
Additional time required on this stream to cross any other. |
void |
draw(IDrawing drw,
int rgb,
boolean dashed,
boolean barred)
Draw this stream. |
IMotor |
firstMotorNotOnIntersection(int exitLo,
int exitHi)
return first motor assigned to the stream but not yet on the intersection, optionally filtered by intersection exit index range, use (0,0) to indicate any exit |
IMotor |
firstMotorOnIntersection(int exitLo,
int exitHi)
return first motor assigned to the stream and on the intersection, optionally filtered by intersection exit index range, use (0,0) to indicate any exit |
Speed |
giveWaySpeed()
The give-way speed on this stream |
boolean |
hasConflict()
Returns true if this stream conflicts with any other. |
IIntersection |
intersection()
The intersection on which this stream occurs |
ILane |
laneI()
The inward lane leading to this stream - the approach lane |
ILane |
laneO()
The outward lane to which this stream leads |
IMotor |
lastMotor()
return last motor assigned to the stream, which may not yet be on the intersection |
IMotor |
lastMotorOnIntersection(int exitLo,
int exitHi)
return last motor assigned to the stream and on the intersection, optionally filtered by intersection exit index range, use (0,0) to indicate any exit |
UTime |
lastSignalChange()
The time of the last change of the signal on this stream. |
ILink |
linkI()
The inward link leading to this stream - the approach |
ILink |
linkO()
The outward link to which this stream leads |
Speed |
maxTurnSpeed(IMotor m)
The maximum turning speed on this stream for the given vehicle |
double |
mergeGapTime()
Additional time required on this stream to merge with another stream going to the same lane. |
IPathway |
pathway()
The pathway object for this stream |
void |
remove(IMotor v)
Do not use @CommuterInternal |
IRestriction |
restriction()
Any restriction attached to this stream. |
boolean |
selected()
True if this is selected in GUI |
void |
selected(boolean v)
Set to true to highlight this as selected in GUI |
Signal |
signal()
The current signal state for this stream. |
void |
sortMotors()
Do not use @CommuterInternal |
ITurn |
turn()
The turn of which this stream forms part |
void |
turn(ITurn t)
The turn to which this stream belongs |
double |
yieldAdvance()
The distance (in m) forward from the stop line (the end of the lane) that a vehicle may proceed on a yield signal. |
void |
yieldAdvance(Distance d)
Set the distance beyond the normal stop line to which a vehicle will advance on yield |
| Methods inherited from interface com.azalient.api.a.position.IJoiner |
|---|
centreline |
| Methods inherited from interface com.azalient.api.ui.clipboard.IAssociate |
|---|
clip, name, proxy, selected |
| Methods inherited from interface com.azalient.api.ui.clipboard.IDraggable |
|---|
selectedForDraggingDraw |
| Methods inherited from interface com.azalient.api.ui.clipboard.IActionable |
|---|
action |
| Methods inherited from interface com.azalient.api.sim.agents.IBlocker |
|---|
blocked, blockerDescription, blockPointDistance, doneBlocking, nowBlocking |
| 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 IStream[] ZERO
| Method Detail |
|---|
IIntersection intersection()
ITurn turn()
ILink linkI()
ILink linkO()
ILane laneI()
ILane laneO()
IPathway pathway()
IRestriction restriction()
Signal signal()
UTime lastSignalChange()
boolean hasConflict()
boolean conflictsWith(IStream s)
IStream[] conflictingStreams()
double yieldAdvance()
double clearance()
double mergeGapTime()
double crossGapTime()
Speed maxTurnSpeed(IMotor m)
Speed giveWaySpeed()
void turn(ITurn t)
void yieldAdvance(Distance d)
void add(IMotor v)
void remove(IMotor v)
void sortMotors()
IMotor firstMotorNotOnIntersection(int exitLo,
int exitHi)
IMotor firstMotorOnIntersection(int exitLo,
int exitHi)
IMotor lastMotorOnIntersection(int exitLo,
int exitHi)
IMotor lastMotor()
boolean selected()
selected in interface IDraggablevoid selected(boolean v)
void draw(IDrawing drw,
int rgb,
boolean dashed,
boolean barred)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||