initial commit
This commit is contained in:
32
Lab505.Script/FlowContext.cs
Normal file
32
Lab505.Script/FlowContext.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Lab505.Script.Facades;
|
||||
|
||||
namespace Lab505.Script;
|
||||
|
||||
public class FlowContext
|
||||
{
|
||||
/// <summary>System condition checker — Assert(instant) / WaitUntil(async wait) / Require(wait+throw)</summary>
|
||||
public required ICondition State { get; set; }
|
||||
|
||||
/// <summary>IMR facade — GoTo, Undock, Load, Unload, PickUp, IsAt</summary>
|
||||
public required IImrFacade IMR { get; set; }
|
||||
|
||||
/// <summary>AMR facade — GoTo, Undock, Load, Unload, IsAt</summary>
|
||||
public required IAmrFacade AMR { get; set; }
|
||||
|
||||
/// <summary>Conveyor — C1In/C1Out/C2In/C2Out coil commands</summary>
|
||||
public required IConveyorFacade Conveyor { get; set; }
|
||||
|
||||
/// <summary>ASRS — X1_S12…X3_R43 operations + WaitCoil</summary>
|
||||
public required IAsrsFacade ASRS { get; set; }
|
||||
|
||||
/// <summary>Dobot — PowerOn, GoHome, Continue, Cancel, Pickup</summary>
|
||||
public required IDobotFacade Dobot { get; set; }
|
||||
|
||||
/// <summary>Workflow — read-only state: IsRunning, LastError, CompletedCycles</summary>
|
||||
public required IFlowFacade Workflow { get; set; }
|
||||
|
||||
/// <summary>Per-user output writer — use Log.WriteLine(...) in scripts instead of Console.WriteLine</summary>
|
||||
public required TextWriter Log { get; set; }
|
||||
|
||||
public CancellationToken Token { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user