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); }
/** * 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(); }
/** * 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); }
/** * 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); }