コード例 #1
0
        private Log m_log;             // the logger

        /**
         * Constructor for objects of class Sensact reading rule-sets from a file.
         * @param rulesFile The rule sets for these sensor guided actions.
         * @param sensorExec The interface to the application sensors.
         * @param actionExec The interface to the application actions.
         */
        public Sensact(string rulesFile,
                       ISensorExec sensorExec, IActionExec actionExec)
        {
            ArrayList ruleSets = readXml(rulesFile);

            Init(ruleSets, sensorExec, actionExec);
        }
コード例 #2
0
 /**
  * Base initializer for objects of class Sensact.
  * One of the rule sets must be active, but only one.
  * It must contain goal action parameters to be acted on.
  * @param ruleSets The rule sets for these sensor guided actions.
  * @param sensorExec The interface to the application sensors.
  * @param actionExec The interface to the application actions.
  */
 public void Init(ArrayList ruleSets,
                  ISensorExec sensorExec, IActionExec actionExec)
 {
     m_ruleSets = ruleSets;
     m_sensors  = sensorExec;
     m_actions  = actionExec;
     m_log      = Log.getOnly();
 }
コード例 #3
0
ファイル: Sensact.cs プロジェクト: bbriggs/FieldWorks
        /**
         * Base constructor for objects of class Sensact.
         * One of the rule sets must be active, but only one.
         * It must contain goal action parameters to be acted on.
         * @param ruleSets The rule sets for these sensor guided actions.
         * @param sensorExec The interface to the application sensors.
         * @param actionExec The interface to the application actions.
         */
        public Sensact(ArrayList ruleSets,
					   ISensorExec sensorExec, IActionExec actionExec)
        {
            Init(ruleSets, sensorExec, actionExec);
        }
コード例 #4
0
ファイル: Sensact.cs プロジェクト: bbriggs/FieldWorks
        /**
         * Constructor for objects of class Sensact reading rule-sets from a file.
         * @param rulesFile The rule sets for these sensor guided actions.
         * @param sensorExec The interface to the application sensors.
         * @param actionExec The interface to the application actions.
         */
        public Sensact(string rulesFile,
					   ISensorExec sensorExec, IActionExec actionExec)
        {
            ArrayList ruleSets = readXml(rulesFile);
            Init(ruleSets, sensorExec, actionExec);
        }
コード例 #5
0
ファイル: Sensact.cs プロジェクト: bbriggs/FieldWorks
        /**
         * Base initializer for objects of class Sensact.
         * One of the rule sets must be active, but only one.
         * It must contain goal action parameters to be acted on.
         * @param ruleSets The rule sets for these sensor guided actions.
         * @param sensorExec The interface to the application sensors.
         * @param actionExec The interface to the application actions.
         */
        public void Init(ArrayList ruleSets,
					   ISensorExec sensorExec, IActionExec actionExec)
        {
            m_ruleSets = ruleSets;
            m_sensors = sensorExec;
            m_actions = actionExec;
            m_log = Log.getOnly();
        }
コード例 #6
0
 /**
  * Base constructor for objects of class Sensact.
  * One of the rule sets must be active, but only one.
  * It must contain goal action parameters to be acted on.
  * @param ruleSets The rule sets for these sensor guided actions.
  * @param sensorExec The interface to the application sensors.
  * @param actionExec The interface to the application actions.
  */
 public Sensact(ArrayList ruleSets,
                ISensorExec sensorExec, IActionExec actionExec)
 {
     Init(ruleSets, sensorExec, actionExec);
 }