public void CreateMachineAgents(FCentralResourceDefinition resourceDefinition) { // Create resource If Required var resourceAgent = Agent.Context.ActorOf(props: ResourceAgent.Resource.Props(actorPaths: Agent.ActorPaths , time: Agent.CurrentTime , debug: Agent.DebugThis , principal: Agent.Context.Self) , name: ("Resource(" + resourceDefinition.ResourceName + ")").ToActorName()); Agent.Send(instruction: BasicInstruction.Initialize .Create(target: resourceAgent , message: ResourceAgent.Behaviour .Factory.Central(resourceDefinition))); }
public Central(FCentralResourceDefinition resourceDefinition, SimulationType simulationType = SimulationType.None) : base(simulationType: simulationType) { _resourceDefinition = resourceDefinition; }
public static IBehaviour Central(FCentralResourceDefinition resourceDefinition) { return(new Central(resourceDefinition, SimulationType.Central)); }
public static CreateMachineAgents Create(FCentralResourceDefinition message, IActorRef target) { return(new CreateMachineAgents(message: message, target: target)); }