using System.Drawing;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace AGVControl.Models
{
///
/// µµ·ÎƯ¼ºÁ¤º¸
///
public class RoadInformation
{
///
/// ½ÃÀÛÁöÁ¡
///
public RFIDPoint P1 { get; set; }
///
/// Á¾·áÁöÁ¡
///
public RFIDPoint P2 { get; set; }
///
/// µµ·ÎÀÇ »ç¿ë¿©ºÎ
///
public bool Enable { get; set; }
///
/// AGVÀÇ À̵¿¹æÇâ(¸®ÇÁÆ®¹æÇâ)
/// ¸ñÀûÁö ¹æÇâ°úÀÇ ÀÏÄ¡¸¦ À§ÇØ ÇØ´ç ¹æÇâÀ» ¼³Á¤ÇÒ ¼ö ÀÖµû
///
public Direction? LiftDirection { get; set; }
///
/// AGVÀ̵¿½Ã ¼Óµµ (high, middle, low)
///
public AgvSpeed? MoveSpeed { get; set; }
///
/// AGVÀ̵¿½Ã ¹æÇâ¸ðµå(Áºбâ, ÀüÁø, ¿ìºÐ±â)
///
public AgvRunDirection? MoveDirection { get; set; }
public RoadInformation()
{
P1 = null;
P2 = null;
LiftDirection = null;
MoveSpeed = null;
MoveDirection = null;
Enable = false;
}
///
/// °ªÀÌ ¼³Á¤µÇ¾îÀÖ´ÂÁö
///
public bool HasValue
{
get
{
if (P1 == null || P2 == null) return false;
if (LiftDirection == null && MoveSpeed == null && MoveDirection == null) return false;
return true;
}
}
}
public class MagnetLine
{
public Point StartPoint { get; set; }
public Point EndPoint { get; set; }
public List BranchPoints { get; set; }
public Dictionary BranchDirections { get; set; }
public MagnetLine()
{
BranchPoints = new List();
BranchDirections = new Dictionary();
}
}
}