|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWalkway
A walkway is a place where people can walk. It has a centre line and a width, but the width is only a guide, unless the walkway is walled.
| Nested Class Summary | |
|---|---|
static class |
IWalkway.WalkwayType
The set of all possible walkway types |
| Field Summary |
|---|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Method Summary | |
|---|---|
void |
addConnection(boolean isTatD,
IWalkway that,
boolean isUatC)
Add a connection to that walkway, specifying which way round the connection should be added |
ICourse |
addConnectionNearest(IWalkway that)
Add a connection between the nearest ends of this walkway and that |
IArea |
area()
Returns an area if this walkway is connected to an area by being partially inside it. |
int |
capacity()
Returns the maximum number of people that can use the walkway at any one time, or zero if there is no limit |
ICourse[] |
coursesC()
An array of courses (connections) at the C end of the walkway. |
ICourse[] |
coursesD()
An array of courses (connections) at the D end of the walkway. |
void |
deleteConnection(IWalkway that)
Delete a connection |
void |
draw(IDrawing drw)
Draw this walkway |
boolean |
isPrivate()
Returns true if private, which means that it can be used by only one person (or person group) at a time. |
int |
population()
Returns the number of people currently on the walkway, which must be less than the capacity() if it is set. |
boolean |
selected()
True if this is selected in GUI |
void |
selected(boolean v)
Set to true to highlight this as selected in GUI |
boolean |
shared()
Returns true if this is a shared walkway: look out for cyclists! |
Speed |
speedCD()
The speed in the CD direction for this walkway |
double |
stepHeight()
For a stepped walkway, this will return a finite positive value, in metres |
double |
stepLength()
For a stepped walkway, this will return a finite positive value, in metres |
IUserTwig |
twigCD()
The routing branch for the CD direction |
IUserTwig |
twigDC()
The routing branch for the DC direction |
IWalkway.WalkwayType |
walkwayType()
Returns the type of the walkway, either a type of crossing or a channel |
boolean |
walled()
Returns true if this walkway is walled - a person can not walk outside the width of a walled walkway |
| Methods inherited from interface com.azalient.api.b.network.IWay |
|---|
centreline, halfWidth, halfWidthE, halfWidthS, kerb, median, width, widthE, widthS |
| Methods inherited from interface com.azalient.api.b.network.IRestrictable |
|---|
allows, allows, closed, closed, multipleRestrictions, multipleRestrictions, name, restriction, restriction, restrictionIndex |
| 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 |
| Method Detail |
|---|
IWalkway.WalkwayType walkwayType()
IArea area()
IUserTwig twigCD()
IUserTwig twigDC()
Speed speedCD()
void deleteConnection(IWalkway that)
void addConnection(boolean isTatD,
IWalkway that,
boolean isUatC)
ICourse addConnectionNearest(IWalkway that)
ICourse[] coursesC()
ICourse[] coursesD()
void draw(IDrawing drw)
boolean selected()
void selected(boolean v)
boolean shared()
boolean walled()
boolean isPrivate()
int capacity()
int population()
capacity() if it is set.
double stepLength()
double stepHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||