Files
XRLib/Assets/Scripts/Simulator/Components/DataClass/SharedDataClass.cs

125 lines
2.8 KiB
C#
Raw Normal View History

2025-10-16 10:24:29 +09:00
using Newtonsoft.Json;
2025-11-04 11:02:02 +09:00
using Simulator.Data.Transport;
2025-10-16 10:24:29 +09:00
using System;
using System.Collections.Generic;
namespace Simulator.Data
{
[Serializable]
2025-11-04 11:02:02 +09:00
public class Totaljson
2025-10-16 10:24:29 +09:00
{
public int status;
public string code;
2025-11-04 11:02:02 +09:00
public LogicData data;
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class LogicData
2025-10-16 10:24:29 +09:00
{
public int id;
2025-12-08 10:59:29 +09:00
public string name;
2025-11-04 11:02:02 +09:00
public LogicDetailData data;
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class LogicDetailData
2025-10-16 10:24:29 +09:00
{
public string name;
2025-11-04 11:02:02 +09:00
public Infrastructure infrastructure;
public Transport_System transport_system;
public Production_System production_system;
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Infrastructure
2025-10-16 10:24:29 +09:00
{
public List<QueueDataClass> queues;
}
[Serializable]
2025-11-04 11:02:02 +09:00
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
2025-10-16 10:24:29 +09:00
{
public List<SourceDataClass> sources;
public List<SinkDataClass> sinks;
public List<ASRSDataClass> asrs;
2025-11-04 11:02:02 +09:00
public List<RackDataClass> racks;
public List<ConveyorDataClass> conveyors;
2025-12-08 10:59:29 +09:00
public List<RobotArmDataClass> robot_arms;
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Physical
2025-10-16 10:24:29 +09:00
{
2025-11-04 11:02:02 +09:00
public Position position = new Position();
public Dimensions dimensions = new Dimensions();
2025-10-16 10:24:29 +09:00
public float orientation;
2025-11-04 11:02:02 +09:00
public Access_Points access_points = new Access_Points();
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Position
2025-10-16 10:24:29 +09:00
{
public float x = 0.0f;
public float y = 0.0f;
public float z = 0.0f;
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Dimensions
2025-10-16 10:24:29 +09:00
{
public float width = 0.0f;
public float height = 0.0f;
public float depth = 0.0f;
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Access_Points
2025-10-16 10:24:29 +09:00
{
2025-11-04 11:02:02 +09:00
public Input input;
public Output output;
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Input
2025-10-16 10:24:29 +09:00
{
2025-11-04 11:02:02 +09:00
public Position local_position = new Position();
2025-10-16 10:24:29 +09:00
}
[Serializable]
2025-11-04 11:02:02 +09:00
public class Output
2025-10-16 10:24:29 +09:00
{
2025-11-04 11:02:02 +09:00
public Position local_position = new Position();
2025-10-16 10:24:29 +09:00
}
}