using IWareCommon.Enum.Common;
|
using S7Test.DevEntity;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace S7Test.CacheInfo
|
{
|
public class CacheEntity
|
{
|
private static object srmLock = new object();
|
|
private static List<SrmEntity> srms = null;
|
|
/// <summary>
|
/// 生成堆垛机实体类
|
/// </summary>
|
public static List<SrmEntity> Srms
|
{
|
get
|
{
|
if (srms == null)
|
{
|
lock (srmLock)
|
{
|
if (srms == null)
|
{
|
srms = new List<SrmEntity>();
|
srms.Add(new SrmEntity("Srm1", (int)EDeviceId.小盘堆垛机));
|
srms.Add(new SrmEntity("Srm2", (int)EDeviceId.大盘堆垛机));
|
}
|
}
|
}
|
return CacheEntity.srms;
|
}
|
set { CacheEntity.srms = value; }
|
}
|
private static object rgvLock = new object();
|
|
private static List<RgvEntity> rgvs = null;
|
|
/// <summary>
|
/// 生成RGV实体类
|
/// </summary>
|
public static List<RgvEntity> Rgvs
|
{
|
get
|
{
|
if (rgvs == null)
|
{
|
lock (rgvLock)
|
{
|
if (rgvs == null)
|
{
|
rgvs = new List<RgvEntity>();
|
rgvs.Add(new RgvEntity("Rgv1", (int)EDeviceId.入库口Rgv));
|
rgvs.Add(new RgvEntity("Rgv2", (int)EDeviceId.出库口Rgv));
|
}
|
}
|
}
|
return CacheEntity.rgvs;
|
}
|
set { CacheEntity.rgvs = value; }
|
}
|
private static object conveyorLock = new object();
|
|
private static List<ConveyorEntity> conveyors = null;
|
|
/// <summary>
|
/// 生成输送线实体类
|
/// </summary>
|
public static List<ConveyorEntity> Conveyors
|
{
|
get
|
{
|
if (conveyors == null)
|
{
|
lock (conveyorLock)
|
{
|
if (conveyors == null)
|
{
|
conveyors = new List<ConveyorEntity>();
|
#region 入库口线体
|
conveyors.Add(new ConveyorEntity("Line1030", (int)EDeviceId.Line1030号输送线));
|
conveyors.Add(new ConveyorEntity("Line1031", (int)EDeviceId.Line1031号输送线));
|
conveyors.Add(new ConveyorEntity("Line1032", (int)EDeviceId.Line1032号输送线));
|
conveyors.Add(new ConveyorEntity("Line1033", (int)EDeviceId.Line1033号输送线));
|
#endregion
|
#region 出库口线体
|
conveyors.Add(new ConveyorEntity("Line1013", (int)EDeviceId.Line1013号输送线));
|
conveyors.Add(new ConveyorEntity("Line1014", (int)EDeviceId.Line1014号输送线));
|
conveyors.Add(new ConveyorEntity("Line1015", (int)EDeviceId.Line1015号输送线));
|
conveyors.Add(new ConveyorEntity("Line1016", (int)EDeviceId.Line1016号输送线));
|
#endregion
|
#region 入库小盘线体
|
conveyors.Add(new ConveyorEntity("Line1021", (int)EDeviceId.Line1021号输送线));
|
conveyors.Add(new ConveyorEntity("Line1022", (int)EDeviceId.Line1022号输送线));
|
conveyors.Add(new ConveyorEntity("Line1023", (int)EDeviceId.Line1023号输送线));
|
conveyors.Add(new ConveyorEntity("Line1024", (int)EDeviceId.Line1024号输送线));
|
#endregion
|
#region 入库大盘线体
|
conveyors.Add(new ConveyorEntity("Line1026", (int)EDeviceId.Line1026号输送线));
|
conveyors.Add(new ConveyorEntity("Line1027", (int)EDeviceId.Line1027号输送线));
|
conveyors.Add(new ConveyorEntity("Line1028", (int)EDeviceId.Line1028号输送线));
|
conveyors.Add(new ConveyorEntity("Line1029", (int)EDeviceId.Line1029号输送线));
|
#endregion
|
#region 人工分拣线体
|
conveyors.Add(new ConveyorEntity("Line1001", (int)EDeviceId.Line1001号输送线));
|
#endregion
|
#region 助力臂分拣1线体
|
conveyors.Add(new ConveyorEntity("Line1002", (int)EDeviceId.Line1002号输送线));
|
conveyors.Add(new ConveyorEntity("Line1003", (int)EDeviceId.Line1003号输送线));
|
conveyors.Add(new ConveyorEntity("Line1006", (int)EDeviceId.Line1006号输送线));
|
#endregion
|
#region 助力臂分拣2线体
|
conveyors.Add(new ConveyorEntity("Line1007", (int)EDeviceId.Line1007号输送线));
|
conveyors.Add(new ConveyorEntity("Line1008", (int)EDeviceId.Line1008号输送线));
|
conveyors.Add(new ConveyorEntity("Line1012", (int)EDeviceId.Line1012号输送线));
|
#endregion
|
|
}
|
}
|
}
|
return CacheEntity.conveyors;
|
}
|
set { CacheEntity.conveyors = value; }
|
}
|
|
}
|
}
|