33 lines
806 B
Plaintext
33 lines
806 B
Plaintext
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DTS.DASLib.Service.StateMachine
|
|
{
|
|
public class RealtimeStart : DASStateSelector
|
|
{
|
|
public override State State => State.RealtimeStart;
|
|
public override Action OnEntry => Start;
|
|
|
|
public override IDASState StateSelector()
|
|
{
|
|
if (Status.RealtimeStatus.CouldNotStartRealtime)
|
|
{
|
|
return States.Instance.RealtimeStart;
|
|
}
|
|
else
|
|
{
|
|
return States.Instance.Realtime;
|
|
}
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
OnEnterState();
|
|
Status.RealtimeStatus.StartRealtime();
|
|
}
|
|
}
|
|
}
|