public JnugEngine(IActionClient actionsPortal, string user) { _actions = actionsPortal; Data = new DataStore(); _halt = false; _user = user; }
public ClientGoalHandle( IActionClient <TGoal, TResult, TFeedback> actionClient, GoalActionMessage <TGoal> goalAction, Action <ClientGoalHandle <TGoal, TResult, TFeedback> > onTransitionCallback, Action <ClientGoalHandle <TGoal, TResult, TFeedback>, FeedbackActionMessage <TFeedback> > onFeedbackCallback ) { this.actionClient = actionClient; Id = goalAction.GoalId.id; Goal = goalAction; State = CommunicationState.WAITING_FOR_GOAL_ACK; this.OnTransitionCallback = onTransitionCallback; this.OnFeedbackCallback = onFeedbackCallback; Active = true; }
public ActionClient(string authorizationHeader, ClientConfiguration.ClientAdapter clientadapter = ClientConfiguration.ClientAdapter.Proxy) { _client = ClientAdapterFactory2.GetInstance <IActionClient>(this.GetType(), authorizationHeader, clientadapter: clientadapter); }
public static void Start(IActionClient actionsPortal, string user) { _engine = new JnugEngine(actionsPortal, user); _engine.Run(); }