Added detector info
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
$HEADER$namespace $NAMESPACE$
|
||||
using System;
|
||||
|
||||
namespace ConsoleApp
|
||||
{
|
||||
public class $CLASS$ {$END$}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user