|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITransport
A public transport vehicle, a type of agent that carries people as passengers
| Field Summary |
|---|
| Fields inherited from interface com.azalient.api.sim.agents.IMotor |
|---|
ZERO |
| Fields inherited from interface com.azalient.api.sim.agents.IObstacle |
|---|
ZERO_OBSTACLES |
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
boolean |
atStand()
Returns true if this transport is currently at a stand |
IDwell |
currentDwell()
The current dwell, which is null if the transport is not currently at a stand |
UTime |
departTime()
Returns the time this transport leaves the next (or current) dwell point |
void |
departTime(UTime time)
Sets the time this transport leaves the next (or current) dwell point |
boolean |
isLift()
Returns true if this transport is a lift (a vertical transport vehicle on a single-transport demand-activated service) |
IDwell |
nextDwell()
The next dwell at which this transport will stop |
boolean |
onLayover()
Returns true if this transport is currently on a layover pause at a stand |
IPassenger[] |
passengerArray()
Returns an array of passengers on this transport, or IPAssenger.ZERO if there are none |
int |
passengers()
Returns the number of passengers on this transport |
double |
randomAlightTime(IPersonTrip trip)
Returns an alighting time from the distribution defined for this transport, given the person trip |
double |
randomBoardTime(IPersonTrip trip)
Returns a boarding time from the distribution defined for this transport, given the person trip |
IService |
service()
The service that this transport is on |
ITransportTrip |
trip()
[Return type specialisation] Returns the transport trip |
double |
tripDistance()
Returns the trip distance so far, in metres. |
ITransportType |
type()
[Return type specialisation] Returns the type of the transport |
int |
variation()
The variation from the timetable, in seconds, where a negative value means ahead of timetable and a positive value is behind timetable. |
| Methods inherited from interface com.azalient.api.sim.agents.IMotor |
|---|
allowStandingLaneChange, changeLane, colour, destinationIndex, exitChoice, exitLaneIndex, exitLaneIndex, extraPeople, followingModel, headFromPathStart, headToPathEnd, intersectionExit, isCycle, isTransport, kill, lane, laneHigh, laneHigh, laneIndex, laneK, laneLow, laneLow, laneLowHigh, laneM, laneOrderIndex, leaderMotor, link, nextLink, nextSurface, occupy, originIndex, people, reselectExit, routeExists, speed, startTime, stopped, stopped, stops, stream, streamOrderIndex, surface, type, unoccupy, uturn |
| Methods inherited from interface com.azalient.api.sim.detection.ILoopOccupier |
|---|
loops |
| Methods inherited from interface com.azalient.api.sim.agents.IObstacle |
|---|
annotationPoint |
| 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 |
| Methods inherited from interface com.azalient.api.sim.agents.IBlocker |
|---|
blocked, blockerDescription, blockPointDistance, doneBlocking, nowBlocking |
| Methods inherited from interface com.azalient.api.draw.IChangingDrawable |
|---|
drawChangeables |
| Methods inherited from interface com.azalient.api.draw.IDrawable |
|---|
canExplode, centroid, destroy, draw, isTransparent, name, remove, removed |
| Methods inherited from interface com.azalient.api.sim.agents.IRouteFinder |
|---|
arrivesHere, routeExitIndex |
| Method Detail |
|---|
ITransportType type()
type in interface IAgenttype in interface IMotorITransportTrip trip()
trip in interface IAgentIService service()
IDwell currentDwell()
IDwell nextDwell()
int variation()
boolean atStand()
boolean onLayover()
boolean isLift()
int passengers()
IPassenger[] passengerArray()
UTime departTime()
void departTime(UTime time)
double tripDistance()
double randomBoardTime(IPersonTrip trip)
double randomAlightTime(IPersonTrip trip)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||