/// <summary> /// Loading the CognitiveInterventionTree for the Asset Handler /// </summary> internal void loadCognitiveInterventionTree() { loggingCI("Loading CognitiveIntervention XML-datastructure."); CognitiveInterventionAssetSettings cias = (CognitiveInterventionAssetSettings)getCIA().Settings; IDataStorage ids = CognitiveInterventionAsset.Instance.getInterfaceFromAsset <IDataStorage>(); if (ids != null) { if (!ids.Exists(cias.XMLFileLocation)) { loggingCI("File " + cias.XMLFileLocation + " not found for loading CognitiveIntervention XML-datastructure.", Severity.Error); throw new Exception("EXCEPTION: File " + cias.XMLFileLocation + " not found for loading CognitiveIntervention XML-datastructure."); } loggingCI("Loading CognitiveIntervention XML-datastructure from File."); cognitiveInterventionTree = new CognitiveInterventionTree(getDatastructureFromXmlString(ids.Load(cias.XMLFileLocation))); } else { loggingCI("IDataStorage bridge absent for loading CognitiveIntervention XML-datastructure.", Severity.Error); throw new Exception("EXCEPTION: IDataStorage bridge absent for loading CognitiveIntervention XML-datastructure."); } }
/// <summary> /// Initializes a new instance of the CognitiveInterventionAsset.Asset class. /// </summary> private CognitiveInterventionAsset() : base() { //! Create Settings and let it's BaseSettings class assign Defaultvalues where it can. settings = new CognitiveInterventionAssetSettings(); }