Свойство | Тип | Описание | |
---|---|---|---|
Type | PriorityType |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
GetVehicle ( ushort vehicleId ) : |
||
getApproachingVehicles ( ) : VehiclePosition>.Dictionary |
||
getCars ( ) : VehiclePosition>.Dictionary |
||
getNumApproachingVehicles ( ) : int | ||
getNumCars ( ) : int |
public AddVehicle ( ushort vehicleId, |
||
vehicleId | ushort | |
carPos | ||
Результат | 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 | |
Результат | uint>.Dictionary |
public HasVehicle ( ushort vehicleId ) : bool | ||
vehicleId | ushort | |
Результат | bool |
public RemoveVehicle ( ushort vehicleId ) : bool | ||
vehicleId | ushort | |
Результат | bool |
public SegmentEnd ( ushort nodeId, ushort segmentId, PriorityType type ) : System | ||
nodeId | ushort | |
segmentId | ushort | |
type | PriorityType | |
Результат | System |