Property | Type | Description | |
---|---|---|---|
Type | PriorityType |
Method | Description | |
---|---|---|
AddVehicle ( ushort vehicleId, |
||
GetVehicleMetricGoingToSegment ( float minSpeed, ExtVehicleType vehicleTypes = null, ExtVehicleType separateVehicleTypes = ExtVehicleType.None, bool debug = false ) : uint>.Dictionary |
Calculates for each segment the number of cars going to this segment. We use integer arithmetic for better performance.
|
|
HasVehicle ( ushort vehicleId ) : bool | ||
RemoveAllCars ( ) : void | ||
RemoveVehicle ( ushort vehicleId ) : bool | ||
SegmentEnd ( ushort nodeId, ushort segmentId, PriorityType type ) : System |
Method | Description | |
---|---|---|
GetVehicle ( ushort vehicleId ) : |
||
getApproachingVehicles ( ) : VehiclePosition>.Dictionary |
||
getCars ( ) : VehiclePosition>.Dictionary |
||
getNumApproachingVehicles ( ) : int | ||
getNumCars ( ) : int |
public AddVehicle ( ushort vehicleId, |
||
vehicleId | ushort | |
carPos | ||
return | void |
public GetVehicleMetricGoingToSegment ( float minSpeed, ExtVehicleType vehicleTypes = null, ExtVehicleType separateVehicleTypes = ExtVehicleType.None, bool debug = false ) : uint>.Dictionary |
||
minSpeed | float | |
vehicleTypes | ExtVehicleType | |
separateVehicleTypes | ExtVehicleType | |
debug | bool | |
return | uint>.Dictionary |
public HasVehicle ( ushort vehicleId ) : bool | ||
vehicleId | ushort | |
return | bool |
public RemoveVehicle ( ushort vehicleId ) : bool | ||
vehicleId | ushort | |
return | bool |
public SegmentEnd ( ushort nodeId, ushort segmentId, PriorityType type ) : System | ||
nodeId | ushort | |
segmentId | ushort | |
type | PriorityType | |
return | System |