public StorytellerAgent(int port, ISystem system)
        {
            Console.WriteLine($"AGENT: Running the StorytellerAgent at port {port} with system {system.GetType().Name}");

            EventAggregator.Messaging.AddListener(this);

            _engine = new EngineAgent(port, system);
        }
Exemple #2
0
        public override bool Execute(AgentInput input)
        {
            Console.WriteLine($"AGENT: Running the StorytellerAgent at port {input.Port} with system {input.System.GetType().Name}");

            EventAggregator.Messaging.AddListener(this);

            _engine = new EngineAgent(input.Port, input.System);

            _completion.WaitOne();

            return(true);
        }
 public void Start(Project project)
 {
     _agent = new EngineAgent(project.Port);
     _agent.Start(project);
 }