public override bool Equals(object obj) { if (obj is LaneChangeBehavior) { LaneChangeBehavior lcb = (LaneChangeBehavior)obj; return(startLane.Equals(lcb.startLane) && endLane.Equals(lcb.endLane) && speedCommand.Equals(lcb.speedCommand)); } else { return(false); } }
public override bool Equals(object obj) { if (obj is StayInLaneBehavior) { StayInLaneBehavior b = (StayInLaneBehavior)obj; return(lane.Equals(b.lane) && speedCommand.Equals(b.speedCommand)); } else { return(false); } }