Class AbstractMultipleAgentsPlan

    • Field Detail

      • agent_cnt

        protected int agent_cnt
        The intended number of agents.
    • Constructor Detail

      • AbstractMultipleAgentsPlan

        public AbstractMultipleAgentsPlan()
    • Method Detail

      • createAgents

        protected java.util.List<IComponentIdentifier> createAgents​(java.lang.String type,
                                                                    java.util.Map<java.lang.String,​java.lang.Object>[] args)
        Create agents of a given type with given arguments.
        Parameters:
        type - The type.
        args - The args.
      • createAgents

        protected java.util.List<IComponentIdentifier> createAgents​(java.lang.String type,
                                                                    java.lang.String config,
                                                                    java.util.Map<java.lang.String,​java.lang.Object>[] args)
        Create agents of a given type with given arguments.
        Parameters:
        type - The type.
        config - The configuration.
        args - The args.
      • destroyAgents

        protected void destroyAgents()
        Destroy the agents.
      • assureTest

        protected boolean assureTest​(TestReport tr)
        Assure that all agents needed for test are there.
        Parameters:
        tr - The test report.
        Returns:
        True, if test can be performed.
      • passed

        public void passed()
        The passed method is called on plan success.
        Overrides:
        passed in class Plan
      • failed

        public void failed()
        The failed method is called on plan failure/abort.
        Overrides:
        failed in class Plan
      • aborted

        public void aborted()
        The plan was aborted (because of conditional goal success or termination from outside).
        Overrides:
        aborted in class Plan