|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDwell
A Dwell contains demand-based information about dwell time, passenger arrivals & departures, for a service at a stand.
| Field Summary | |
|---|---|
static Class[] |
KEY_TYPES
A dwell has a two-field key, service and stand, both are string types |
static double |
STD_MIN_DWELL_TIME
The default minimum dwell time, in seconds. |
static IDwell[] |
ZERO
A static zero-length array, created for convenience, and to save memory |
| Fields inherited from interface com.azalient.api.ui.clipboard.IClippable |
|---|
scratch |
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
addPassenger(IPassenger passenger)
Add a passenger to the queue at this dwell. |
boolean |
anyMoreTransports()
Returns true if any more transport vehicles are due to arrive at this stand before the end of the simulation term |
ITransport |
currentTransport()
The last transport to arrive at the stand, if it is still at the stand, otherwise null. |
IDwell |
destinationBySplit(IPerson person)
Return a destination dwell for the given person according to splits defined at this dwell |
Distance |
distance()
The distance of this dwell from the first stand on the service |
double |
dwellTimeMaximum()
Returns the maximum dwell time in seconds |
double |
dwellTimeMinimum()
Returns the minimum dwell time in seconds |
void |
dwellTimeMinimum(double sec)
Sets the minimum dwell time in seconds |
IDwell |
followingDwell(int relIndex1)
Return a dwell after this one on the service, with a relative index in the range 1..N |
int |
followingDwells()
Return the number of dwells following this one on the service |
String |
nextTransportDescription()
Return a text description of the time at which the next transport is due, for example "Due at 08:05:00" |
int |
nextTransportDueSeconds()
Returns the time, in seconds until the next transport vehicle is due |
ITwig |
onboardTwig()
Return the "on-board" routing twig for this dwell, which defines where a passenger will get off. |
IPassenger |
passengerInQueue(int position)
Return the passenger at the given position in the queue [0 ... |
void |
passengerRemove(IPassenger p)
Remove the given passenger under abnormal conditions (e.g. |
IPassenger |
popFirstPassenger()
Remove the first passenger from the queue |
int |
positionInQueue(IPassenger pass)
Return the position [0 ... |
int |
queueLength()
Return the number of passengers waiting at this dwell |
void |
reAssignPassengers()
Reselect the exit for each person in the queue, assigning them to the best current dwell |
void |
recalcDestinationStands()
This is called when stands have been changed, and the array of possible destination stands should be rebuilt |
IService |
service()
The service to which this dwell relates. |
IStand |
stand()
The stand to which this dwell relates |
ITimingPoint |
timingPoint()
Returns the timing point for this dwell. |
void |
timingPoint(ITimingPoint tp)
Sets the timing point for this dwell. |
| Methods inherited from interface com.azalient.api.ui.clipboard.IClippable |
|---|
children, getAlt, references, tableName |
| Methods inherited from interface com.azalient.api.ui.clipboard.IDeletable |
|---|
delete, deleted, name |
| Methods inherited from interface com.azalient.api.b.assignment.IDecisionOption |
|---|
openFrom |
| Methods inherited from interface com.azalient.api.a.IUserData |
|---|
userData, userData, userDataHashCode |
| 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 IDwell[] ZERO
static final Class[] KEY_TYPES
static final double STD_MIN_DWELL_TIME
| Method Detail |
|---|
IService service()
IStand stand()
double dwellTimeMinimum()
void dwellTimeMinimum(double sec)
double dwellTimeMaximum()
void timingPoint(ITimingPoint tp)
ITimingPoint timingPoint()
void addPassenger(IPassenger passenger)
IPassenger popFirstPassenger()
void passengerRemove(IPassenger p)
int queueLength()
int positionInQueue(IPassenger pass)
IPassenger passengerInQueue(int position)
void reAssignPassengers()
boolean anyMoreTransports()
int nextTransportDueSeconds()
String nextTransportDescription()
IDwell destinationBySplit(IPerson person)
ITwig onboardTwig()
int followingDwells()
IDwell followingDwell(int relIndex1)
Distance distance()
ITransport currentTransport()
void recalcDestinationStands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||