/// <summary> /// Constructor for trajectory only /// </summary> /// <param name="veh_id">Vehicle ID</param> /// <param name="veh_traj">Vehicle Trjectory</param> public VEHICLE(int veh_id, TRAJECTORY veh_traj) { this.Veh_id = veh_id; this.Transit_Time = new double[MAXIMUM_DETECTORS]; this.Speed = new double[MAXIMUM_DETECTORS]; this.Accel = new double[MAXIMUM_DETECTORS]; this.Veh_Traj = veh_traj; this.Length = 4.47; this.CrashPotentials = new CRASHPOTENTIALS(true); }
/// <summary> /// The constructor /// </summary> /// <param name="veh_id">Vehicle ID</param> /// <param name="t_time">Transit Time</param> /// <param name="speed"></param> /// <param name="accel"></param> /// <param name="veh_traj">Vehicle Trjectory</param> public VEHICLE(int veh_id, double[] t_time, double[] speed, double[] accel, TRAJECTORY veh_traj, double length, CRASHPOTENTIALS crashpotentials) { this.Veh_id = veh_id; this.Transit_Time = accel; this.Speed = speed; this.Accel = accel; this.Veh_Traj = veh_traj; this.Length = length; this.CrashPotentials = crashpotentials; }