com.azalient.api.b.parameters
Interface ISpeedControl

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

public interface ISpeedControl
extends IDescribed, StoreRecordRW

A speed limit for a group of behaviours, that would be applied to a lane.


Field Summary
 
Fields inherited from interface com.azalient.api.a.tables.IRecord
DELETED, KEY_SEP, KEY_SEP_CHAR
 
Method Summary
 boolean appliesTo(IBehaviour b)
          Returns true if the given behaviour is controlled by this speed control
 NamedColour colour()
          Returns a colour which is used to highlight this speed control
 void colour(NamedColour colour)
          Sets a colour which is used to highlight this speed control
 void description(String s)
          A description of this speed control
 int index()
          The unique numeric index for this speed control
 double speed()
          Returns the speed (in m/s) which this control applies to selected vehicles on the lane
 void speed(double speed)
          Sets the speed (in m/s) which this control applies to selected vehicles on the lane
 
Methods inherited from interface com.azalient.api.a.tables.IDescribed
description
 
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

index

int index()
The unique numeric index for this speed control


description

void description(String s)
A description of this speed control


speed

double speed()
Returns the speed (in m/s) which this control applies to selected vehicles on the lane


speed

void speed(double speed)
Sets the speed (in m/s) which this control applies to selected vehicles on the lane


colour

NamedColour colour()
Returns a colour which is used to highlight this speed control


colour

void colour(NamedColour colour)
Sets a colour which is used to highlight this speed control


appliesTo

boolean appliesTo(IBehaviour b)
Returns true if the given behaviour is controlled by this speed control