Exemplo n.º 1
0
 public override bool Equals(object obj)
 {
     if (obj is InterconnectID)
     {
         InterconnectID test = (InterconnectID)obj;
         return(test.FinalID.Equals(this.FinalID) && test.InitialID.Equals(this.InitialID));
     }
     else
     {
         throw new ArgumentException("Wrong Type", "obj");
     }
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initialLane"></param>
 /// <param name="finalLane"></param>
 /// <param name="interconnect"></param>
 public StoppedAtExitState(LaneID initialLane, LaneID finalLane, InterconnectID interconnect, LaneDescription currentLaneDescription)
     : base(initialLane, finalLane, interconnect)
 {
     this.currentLaneDescription = currentLaneDescription;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initialWaypoint">beginning waypoint of interconnect</param>
 /// <param name="finalWaypoint">ending waypoint of interconnect</param>
 public Interconnect(InterconnectID interconnectID, RndfWayPoint initialWaypoint, RndfWayPoint finalWaypoint)
 {
     this.initialWaypoint = initialWaypoint;
     this.finalWaypoint = finalWaypoint;
     this.interconnectID = interconnectID;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initialWaypoint">beginning waypoint of interconnect</param>
 /// <param name="finalWaypoint">ending waypoint of interconnect</param>
 public Interconnect(InterconnectID interconnectID, RndfWayPoint initialWaypoint, RndfWayPoint finalWaypoint)
 {
     this.initialWaypoint = initialWaypoint;
     this.finalWaypoint   = finalWaypoint;
     this.interconnectID  = interconnectID;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initialLane"></param>
 /// <param name="finalLane"></param>
 /// <param name="interconnect"></param>
 public IntersectionState(LaneID initialLane, LaneID finalLane, InterconnectID interconnect)
 {
     this.initialLane = initialLane;
     this.finalLane = finalLane;
     this.interconnect  = interconnect;
 }
 public UTurnState(LaneID initialLane, LaneID finalLane, InterconnectID interconnect, UTurnBehavior uTurn)
     : base(initialLane, finalLane, interconnect, TurnDirection.Straight)
 {
     this.UTurn = uTurn;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initial"></param>
 /// <param name="final"></param>
 /// <param name="interconnect"></param>
 /// <param name="turnDirection"></param>
 public WaitingAtStopState(LaneID initial, LaneID final, InterconnectID interconnect, TurnDirection turnDirection)
     : base(initial, final, interconnect)
 {
     this.TurnDirection = turnDirection;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="initialLane"></param>
 /// <param name="finalLane"></param>
 /// <param name="interconnect"></param>
 public TurnState(LaneID initialLane, LaneID finalLane, InterconnectID interconnect, TurnDirection turnDirection)
     : base(initialLane, finalLane, interconnect)
 {
     this.TurnDirection = turnDirection;
 }