24 lines
710 B
C#
24 lines
710 B
C#
using System;
|
|
|
|
namespace ConsoleApp
|
|
{
|
|
public class Vehicle : IVehicle
|
|
{
|
|
public int Length { get; }
|
|
public int Width { get; }
|
|
|
|
public int DetectorOffset { get;}
|
|
public int DetectorWidth { get;}
|
|
|
|
public Vehicle(IJsonDeserializor jsonDeserializor)
|
|
{
|
|
var config = jsonDeserializor.DeserializeObject<VehicleConfiguration>("/Users/brady.bodily/Documents/Repositories/CS5890_Robot_Intelligence/RobotIntelFinal/ConsoleApp/VehicleConfiguration.json");
|
|
Length = config.Length;
|
|
Width = config.Width;
|
|
DetectorWidth = config.DetectorWidth;
|
|
DetectorOffset = config.DetectorOffset;
|
|
}
|
|
|
|
|
|
}
|
|
} |