public HelloWorldSee(AMLSkillExecutionEngine AmlSee, SkillBasedResourceController aSkillBasedResourceController) : base(AmlSee, aSkillBasedResourceController) { //Here, you just have to instanciate what belongs to your child class //=> all the other "standard" (connections to OPC-UA, AMS etc) is done in the SEE mother class //In our case, we don't have any additionnal fields to set/instanciate }
/// <summary> /// Dedicated constructor, inherited from SEE mother class /// </summary> /// <param name="AmlSee"></param> /// <param name="aSkillBasedResourceController"></param> public DedicatedPopUpSee(AMLSkillExecutionEngine AmlSee, SkillBasedResourceController aSkillBasedResourceController) : base(AmlSee, aSkillBasedResourceController) { //Here, you just have to instanciate what belongs to your child class //=> all the other "standard" (connections to OPC-UA, AMS etc) is done in the SEE mother class //In our case, we just have one attribute to instanciate _rand = new Random(); }
private void createSBRC(out SkillBasedResourceController Sbrc, out AMLSkillExecutionEngine amlSee) { string expectedPath = @tb_AmlFile.Text; AMLDocument DocAml = AMLSerializer.DeserializeFromFile(expectedPath); if (DocAml.SkillExecutionEngine.Count != 1) { throw new Exception("You must have one and only one SEE in your aml file"); } amlSee = DocAml.SkillExecutionEngine[0]; Sbrc = new SkillBasedResourceController(DocAml.SkillExecutionEngine[0], DocAml.ExecutableSkills); }
public HelloWorldAndQuestionsSee(AMLSkillExecutionEngine AmlSee, SkillBasedResourceController aSkillBasedResourceController) : base(AmlSee, aSkillBasedResourceController) { }