34 this.geometricTopology = geometricTopology;
35 this.cellularTopologyParameters = cellularTopologyParameters;
43 foreach (
Lane lane
in geometricTopology.
Lanes)
45 Cell previousCell = null;
47 foreach (Point lanePoint
in lane.LanePoints(cellularTopologyParameters.
P1_CellLength))
50 if (previousCell == null)
55 generator.ConnectedCell = cell;
60 if (cellCounter == 100)
63 sensor.ConnectedCell = cell;
66 previousCell.FollowingCell = cell;
Vector NormalizedDirectionVector
Normalized direction vector.
Class representing geometric topology of road network.
Represents generator of cars.
StartNode StartNode
Node on the input end of lane.
Class representing sensor.
Class for building cellular topology from geometric topology.
Point Location
Location of cell.
Class containing parameters related to cellular topology.
Generator Generator
Generator connected to node.
ReadOnlyCollection< Lane > Lanes
Lanes in geometric topology. </summary
double P1_CellLength
Cell length parameter.
ReadOnlyCollection< InnerNode > InnerNodes
Inner nodes on the lane.
Cell PreviousCell
Link to previous cell.
bool ContainsGenerator
Determines whether the node contains generator.