iTS - Intelligent Traffic System  V 1.0.5
 All Classes Functions Variables Properties
TSLaneInfo Class Reference

TS lane info. This class is responsible for holding all the lane information. More...

Public Types

enum  VehicleType {
  Taxi, Bus, Light, Medium,
  Heavy, Train, Heavy_Machinery, Pedestrians
}
 

Public Attributes

Vector3 conectorA
 The conector a. This is the starting point of the lane. More...
 
Vector3 conectorB
 The conector b. This is the ending point of the lane. More...
 
List< Vector3 > middlePoints = new List<Vector3>()
 The middle points. This are the middle control points of the spline that creates the lane shape. More...
 
float laneWidth = 2.5f
 The width of the lane. More...
 
VehicleType vehicleType = ((VehicleType) (-1))
 The type of the vehicle that can transit this lane. More...
 
float maxSpeed = 50
 The max speed set for this lane. More...
 
TSPoints[] points
 The points. All the points that conforms this lane. More...
 
TSLaneConnector[] connectors
 The connectors. All the connectors that are created from this lane. More...
 
int laneLinkRight = -1
 The lane link right. More...
 
int laneLinkLeft = -1
 The lane link left. More...
 
float trafficDensity = 1f
 The traffic density. More...
 
float totalOcupation = 0f
 The total ocupation of this lane. More...
 
float totalDistance = 0f
 The total distance. More...
 

Detailed Description

TS lane info. This class is responsible for holding all the lane information.

Member Data Documentation

Vector3 TSLaneInfo.conectorA

The conector a. This is the starting point of the lane.

Vector3 TSLaneInfo.conectorB

The conector b. This is the ending point of the lane.

TSLaneConnector [] TSLaneInfo.connectors

The connectors. All the connectors that are created from this lane.

int TSLaneInfo.laneLinkLeft = -1

The lane link left.

int TSLaneInfo.laneLinkRight = -1

The lane link right.

float TSLaneInfo.laneWidth = 2.5f

The width of the lane.

float TSLaneInfo.maxSpeed = 50

The max speed set for this lane.

List<Vector3> TSLaneInfo.middlePoints = new List<Vector3>()

The middle points. This are the middle control points of the spline that creates the lane shape.

TSPoints [] TSLaneInfo.points

The points. All the points that conforms this lane.

float TSLaneInfo.totalDistance = 0f

The total distance.

float TSLaneInfo.totalOcupation = 0f

The total ocupation of this lane.

float TSLaneInfo.trafficDensity = 1f

The traffic density.

VehicleType TSLaneInfo.vehicleType = ((VehicleType) (-1))

The type of the vehicle that can transit this lane.