134 lines
3.0 KiB
C#
134 lines
3.0 KiB
C#
using Newtonsoft.Json;
|
|
using Simulator.Data.Transport;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Simulator.Data
|
|
{
|
|
[Serializable]
|
|
public class Totaljson
|
|
{
|
|
public int status;
|
|
public string code;
|
|
public LogicData data;
|
|
}
|
|
|
|
[Serializable]
|
|
public class LogicData
|
|
{
|
|
public int id;
|
|
public string name;
|
|
public LogicDetailData data;
|
|
}
|
|
|
|
[Serializable]
|
|
public class LogicDetailData
|
|
{
|
|
public string name;
|
|
public templates templates;
|
|
public Infrastructure infrastructure;
|
|
public Transport_System transport_system;
|
|
public Production_System production_system;
|
|
}
|
|
|
|
[Serializable]
|
|
public class templates
|
|
{
|
|
public List<PrefabData> prefabs;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Infrastructure
|
|
{
|
|
public List<QueueDataClass> queues;
|
|
public List<WorkerDataClass> resources;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Transport_System
|
|
{
|
|
public List<Node_Networks> node_networks=new List<Node_Networks>();
|
|
public List<Transport_Manager> transport_managers=new List<Transport_Manager>();
|
|
}
|
|
|
|
[Serializable]
|
|
public class Node_Networks
|
|
{
|
|
public List<NodeDataClass> nodes= new List<NodeDataClass>();
|
|
public List<PathDataClass> paths=new List<PathDataClass>();
|
|
}
|
|
|
|
[Serializable]
|
|
public class Transport_Manager
|
|
{
|
|
public string label;
|
|
public string manager_id;
|
|
public string network_id;
|
|
public string manager_type;
|
|
public List<Vehicle_Fleet> vehicle_fleets;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Vehicle_Fleet
|
|
{
|
|
public string label;
|
|
public string fleet_id;
|
|
public List<AGVData> vehicles;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Production_System
|
|
{
|
|
public List<SourceDataClass> sources;
|
|
public List<SinkDataClass> sinks;
|
|
public List<ASRSDataClass> asrs;
|
|
public List<RackDataClass> racks;
|
|
public List<ConveyorDataClass> conveyors;
|
|
public List<RobotArmDataClass> robot_arms;
|
|
public List<ProcessorDataClass> processors;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Physical
|
|
{
|
|
public Position position = new Position();
|
|
public Dimensions dimensions = new Dimensions();
|
|
public float orientation;
|
|
public Access_Points access_points = new Access_Points();
|
|
}
|
|
|
|
[Serializable]
|
|
public class Position
|
|
{
|
|
public float x = 0.0f;
|
|
public float y = 0.0f;
|
|
public float z = 0.0f;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Dimensions
|
|
{
|
|
public float width = 0.0f;
|
|
public float height = 0.0f;
|
|
public float depth = 0.0f;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Access_Points
|
|
{
|
|
public Input input;
|
|
public Output output;
|
|
}
|
|
|
|
[Serializable]
|
|
public class Input
|
|
{
|
|
public Position local_position = new Position();
|
|
}
|
|
|
|
[Serializable]
|
|
public class Output
|
|
{
|
|
public Position local_position = new Position();
|
|
}
|
|
} |