com.azalient.api.b.parameters
Interface ITypeSet

All Superinterfaces:
IRecord, RecordR, RecordRW, RecordW, SortableData, StoreRecordRW
All Known Subinterfaces:
IDivision, IFleet

public interface ITypeSet
extends StoreRecordRW

A base interface for a set of types. The types can be vehicle types or person types, but never a mixture


Field Summary
 
Fields inherited from interface com.azalient.api.a.tables.IRecord
DELETED, KEY_SEP, KEY_SEP_CHAR
 
Method Summary
 void add(IType type)
          Add the given type to the set
 boolean contains(IType type)
          Returns true if this TypeSet contains the given type
 int count()
          Returns a count of the number of types in this typeset
 boolean logical()
          Returns true if this is a "logical" type set.
 void logical(boolean b)
          Set this to be a logical set.
 TripMode mode()
          The trip mode of this type set
 void remove(IType type)
          Remove the given type from the set
 boolean standard()
          Returns true if this type set is one of the standard sets that is always create, like "All People" or "All Vehicles".
 IType type(int index)
          Returns the type at the given index in this set.
 
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

contains

boolean contains(IType type)
Returns true if this TypeSet contains the given type


count

int count()
Returns a count of the number of types in this typeset


type

IType type(int index)
Returns the type at the given index in this set.


add

void add(IType type)
Add the given type to the set


remove

void remove(IType type)
Remove the given type from the set


mode

TripMode mode()
The trip mode of this type set


logical

boolean logical()
Returns true if this is a "logical" type set. A logical set is one that does not have a share of 100% associated with each type, it is purely a set in the mathematical sense, where something is a member if it is in the set.


logical

void logical(boolean b)
Set this to be a logical set. logical()


standard

boolean standard()
Returns true if this type set is one of the standard sets that is always create, like "All People" or "All Vehicles".