/// <summary> /// Create a set of minimal options /// </summary> public static TechnicalDataOptions CreateDefault() { var rec = new TechnicalDataOptionsRecord(); rec.AllowSubmodelSemanticId.Add(AdminShell.Key.CreateNew( type: "Submodel", local: false, idType: "IRI", value: "http://smart.festo.com/id/type/submodel/TechnicalDatat/1/1")); var opt = new TechnicalDataOptions(); opt.Records.Add(rec); return(opt); }
public void Start( AdminShellPackageEnv package, AdminShell.Submodel sm, TechnicalDataOptions options, PluginEventStack eventStack) { // set the context this.thePackage = package; this.theSubmodel = sm; this.theOptions = options; this.theEventStack = eventStack; // retrieve the Definitions this.theDefs = new DefinitionsZveiTechnicalData.SetOfDefs(new DefinitionsZveiTechnicalData()); // ok, directly set contents SetContents(); }
/// <summary> /// Create a set of minimal options /// </summary> public static TechnicalDataOptions CreateDefault() { // definitions var defsV10 = new AasxPredefinedConcepts.DefinitionsZveiTechnicalData.SetOfDefs( new AasxPredefinedConcepts.DefinitionsZveiTechnicalData()); var defsV11 = AasxPredefinedConcepts.ZveiTechnicalDataV11.Static; // records var opt = new TechnicalDataOptions(); var rec10 = new TechnicalDataOptionsRecord(); rec10.AllowSubmodelSemanticId.Add(defsV10.SM_TechnicalData.GetSemanticKey()); opt.Records.Add(rec10); var rec11 = new TechnicalDataOptionsRecord(); rec11.AllowSubmodelSemanticId.Add(defsV11.SM_TechnicalData.GetSemanticKey()); opt.Records.Add(rec11); return(opt); }