61 lines
1.2 KiB
C#
61 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WeldingCommon;
|
|
|
|
namespace WeldingCommon.Process
|
|
{
|
|
public interface ICellState
|
|
{
|
|
void Changed();
|
|
}
|
|
|
|
public class NotEnteredState : ICellState
|
|
{
|
|
public NotEnteredState() {
|
|
Changed();
|
|
}
|
|
public void Changed()
|
|
{
|
|
Status.SetWorkingPosition(eWorkingPosition.NONE);
|
|
}
|
|
}
|
|
|
|
public class LoadingCompState : ICellState
|
|
{
|
|
public LoadingCompState()
|
|
{
|
|
Changed();
|
|
}
|
|
public void Changed()
|
|
{
|
|
Status.SetWorkingPosition(eWorkingPosition.LOADING_CELL);
|
|
}
|
|
}
|
|
|
|
public class WeldingCompState : ICellState
|
|
{
|
|
public WeldingCompState()
|
|
{
|
|
Changed();
|
|
}
|
|
public void Changed()
|
|
{
|
|
Status.SetWorkingPosition(eWorkingPosition.EXECUTING_WELD);
|
|
}
|
|
}
|
|
public class UnloadingCompState : ICellState
|
|
{
|
|
public UnloadingCompState()
|
|
{
|
|
Changed();
|
|
}
|
|
public void Changed()
|
|
{
|
|
Status.SetWorkingPosition(eWorkingPosition.UNLOADING_CELL);
|
|
}
|
|
}
|
|
}
|