com.azalient.api.b.network
Interface IStand

All Superinterfaces:
IDecisionOption, IDescribed, IRecord, RecordR, RecordRW, RecordW, SortableData, StoreRecordRW

public interface IStand
extends IDescribed, IDecisionOption, StoreRecordRW

A stand is the location at which public transport vehicles (buses, trains, trams, etc) stop to pick up and set down passengers.


Nested Class Summary
static class IStand.Accessibility
          The status of a stand for each service
 
Field Summary
static String ARRIVAL_SUFFIX
          Suffix used for naming arrival route branches
static String DEPARTURE_SUFFIX
          Suffix used for naming boarding route branches
static IStand[] ZERO
          A static zero-length array, created for convenience, and to save memory
 
Fields inherited from interface com.azalient.api.a.tables.IRecord
DELETED, KEY_SEP, KEY_SEP_CHAR
 
Method Summary
 void addUnreleased(ITransportTrip trip)
          Add this trip to the list of those waiting for departure at this stand
 boolean anyTransportHere(boolean testArrived)
          Returns true if there is currently a transport here.
 IArea areaOnArrival(IPerson person)
          choose the arrival area based on route splits
 ITwig arrivalTwig()
          THe routing branch connecting arriving services to this stand
 ITwig boardingTwig()
          The routing branch connecting this stand to departing services
 ICourse courseOnArrival(IPerson person)
          Return the course (to a walkway) that the given person shoudl take on arrival.
 ICourse[] courses()
          Any courses connected to this stand
 IArea directArea()
          Deprecated. A stand can now have more than one direct area
 IArea[] directArrivalAreas()
          Return all arrival areas connected to this stand
 IArea[] directDepartureAreas()
          Return all departure areas connected to this stand
 int doors()
          The number of doors on any transport that stops here - this affect how channels will be attached, and how people will queue for the next transport to arrive.
 void draw(IDrawing drw, double scale, int rgb)
          Draw this stand
 IDwell[] dwells()
          All the dwells at this stand
 boolean inverted()
          Returns true if this stand is on the "other" side of the lane from the normal side.
 boolean isLift()
          Returns true if this stand is for a lift service
 boolean isTransition()
          Returns true if this is a transition stand, which should be connected directly to an area, at the edge of the model.
 ILaneLocation location()
          The lane-distance location of this stand
 double moveInDistance()
          The distance before a stand (in m) that a transport will move in
 IDwell originBySplit(IPerson person)
          Return the dwell that the given person would be assigned if using route splits
 void removeUnreleased(ITransportTrip trip)
          Remove this trip from the list of those waiting for departure at this stand
 int slots()
          The number of slots for vehicles at a stand.
 boolean spaceExists(IType type)
           
 void timeSec()
          Called every second of simulation
 
Methods inherited from interface com.azalient.api.a.tables.IDescribed
description
 
Methods inherited from interface com.azalient.api.b.assignment.IDecisionOption
openFrom
 
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

ZERO

static final IStand[] ZERO
A static zero-length array, created for convenience, and to save memory


DEPARTURE_SUFFIX

static final String DEPARTURE_SUFFIX
Suffix used for naming boarding route branches

See Also:
Constant Field Values

ARRIVAL_SUFFIX

static final String ARRIVAL_SUFFIX
Suffix used for naming arrival route branches

See Also:
Constant Field Values
Method Detail

location

ILaneLocation location()
The lane-distance location of this stand


timeSec

void timeSec()
Called every second of simulation


dwells

IDwell[] dwells()
All the dwells at this stand


courses

ICourse[] courses()
Any courses connected to this stand


originBySplit

IDwell originBySplit(IPerson person)
Return the dwell that the given person would be assigned if using route splits


courseOnArrival

ICourse courseOnArrival(IPerson person)
Return the course (to a walkway) that the given person shoudl take on arrival.


boardingTwig

ITwig boardingTwig()
The routing branch connecting this stand to departing services


arrivalTwig

ITwig arrivalTwig()
THe routing branch connecting arriving services to this stand


draw

void draw(IDrawing drw,
          double scale,
          int rgb)
Draw this stand

Internal - Not recommended for use. Public as a side-effect of implementation method

moveInDistance

double moveInDistance()
The distance before a stand (in m) that a transport will move in


anyTransportHere

boolean anyTransportHere(boolean testArrived)
Returns true if there is currently a transport here. Do NOT set testArrived to true in your own code.

Internal - Not recommended for use. Public as a side-effect of implementation method

doors

int doors()
The number of doors on any transport that stops here - this affect how channels will be attached, and how people will queue for the next transport to arrive.


isTransition

boolean isTransition()
Returns true if this is a transition stand, which should be connected directly to an area, at the edge of the model. A transport will not stop at this stand, but will pick up passengers instantaneously


directArea

IArea directArea()
Deprecated. A stand can now have more than one direct area


directDepartureAreas

IArea[] directDepartureAreas()
Return all departure areas connected to this stand


directArrivalAreas

IArea[] directArrivalAreas()
Return all arrival areas connected to this stand


areaOnArrival

IArea areaOnArrival(IPerson person)
choose the arrival area based on route splits


inverted

boolean inverted()
Returns true if this stand is on the "other" side of the lane from the normal side.


isLift

boolean isLift()
Returns true if this stand is for a lift service


spaceExists

boolean spaceExists(IType type)

addUnreleased

void addUnreleased(ITransportTrip trip)
Add this trip to the list of those waiting for departure at this stand


removeUnreleased

void removeUnreleased(ITransportTrip trip)
Remove this trip from the list of those waiting for departure at this stand


slots

int slots()
The number of slots for vehicles at a stand. You should make the slots big enough for typical vehicles