C# 클래스 TrafficManager.Traffic.SegmentEnd

파일 보기 프로젝트 열기: Katalyst6/CSL.TransitAddonMod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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