C# Class TrafficManager.Traffic.SegmentEnd

Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Méthodes publiques

Свойство Type Description
Type PriorityType

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetVehicle ( ushort vehicleId ) : VehiclePosition
getApproachingVehicles ( ) : VehiclePosition>.Dictionary
getCars ( ) : VehiclePosition>.Dictionary
getNumApproachingVehicles ( ) : int
getNumCars ( ) : int

Method Details

AddVehicle() public méthode

public AddVehicle ( ushort vehicleId, VehiclePosition carPos ) : void
vehicleId ushort
carPos VehiclePosition
Résultat void

GetVehicleMetricGoingToSegment() public méthode

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
Résultat uint>.Dictionary

HasVehicle() public méthode

public HasVehicle ( ushort vehicleId ) : bool
vehicleId ushort
Résultat bool

RemoveAllCars() public méthode

public RemoveAllCars ( ) : void
Résultat void

RemoveVehicle() public méthode

public RemoveVehicle ( ushort vehicleId ) : bool
vehicleId ushort
Résultat bool

SegmentEnd() public méthode

public SegmentEnd ( ushort nodeId, ushort segmentId, PriorityType type ) : System
nodeId ushort
segmentId ushort
type PriorityType
Résultat System

Property Details

Type public_oe property

public PriorityType Type
Résultat PriorityType