C# Класс TrafficManager.Traffic.SegmentEnd

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Type PriorityType

Открытые методы

Метод Описание
AddVehicle ( ushort vehicleId, VehiclePosition carPos ) : void
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 ) : VehiclePosition
getApproachingVehicles ( ) : VehiclePosition>.Dictionary
getCars ( ) : VehiclePosition>.Dictionary
getNumApproachingVehicles ( ) : int
getNumCars ( ) : int

Описание методов

AddVehicle() публичный Метод

public AddVehicle ( ushort vehicleId, VehiclePosition carPos ) : void
vehicleId ushort
carPos VehiclePosition
Результат void

GetVehicleMetricGoingToSegment() публичный Метод

Calculates for each segment the number of cars going to this segment. We use integer arithmetic for better performance.
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

HasVehicle() публичный Метод

public HasVehicle ( ushort vehicleId ) : bool
vehicleId ushort
Результат bool

RemoveAllCars() публичный Метод

public RemoveAllCars ( ) : void
Результат void

RemoveVehicle() публичный Метод

public RemoveVehicle ( ushort vehicleId ) : bool
vehicleId ushort
Результат bool

SegmentEnd() публичный Метод

public SegmentEnd ( ushort nodeId, ushort segmentId, PriorityType type ) : System
nodeId ushort
segmentId ushort
type PriorityType
Результат System

Описание свойств

Type публичное свойство

public PriorityType Type
Результат PriorityType