4 using System.Collections.Generic;
5 using System.Collections.ObjectModel;
37 private List<InnerNode> innerNodes =
new List<InnerNode>();
41 public ReadOnlyCollection<InnerNode> InnerNodes {
get {
return innerNodes.AsReadOnly(); } }
48 protected Lane(Point startPoint, Point endPoint)
51 innerNodes.Add(
new SensorNode(
new Point(), 0.5,
new Sensor(
"in.txt",
"out.txt")));
52 endNode =
new EndNode(endPoint);
60 internal abstract IEnumerable<Point> LanePoints(
double lanePointsMaxDistance);
68 innerNodes.Add(innerNodeToAdd);
StartNode startNode
Node on the input end of lane.
Node on the end of the lane.
Class representing sensor.
void AddInnerNode(InnerNode innerNodeToAdd)
Adds new inner node.
Node on the beginning of the lane and can also contain generator.
Node on the lane which is not the start or end node.
Lane(Point startPoint, Point endPoint)
Lane constructor.
Node endNode
Node on the output end of lane.
Class representing an object in topology on lane.