OpenKeyWord  Build Tag: jenkins-DoxyGen_EN-107, Build ID: 2015-03-08_20-51-06
 All Classes Namespaces Functions Variables Properties Pages
OKW.ImplementationMatrix.ImplementationMatrix Class Reference

ImplentationMatrix wird für die Dokumentaion des Implmentierungs fortschrittes verwendet. More...

Collaboration diagram for OKW.ImplementationMatrix.ImplementationMatrix:

Public Member Functions

string GetImplementation (string fpsKey)
 
void Init ()
 
void Read ()
 
void Save ()
 
void SetImplementation (string fpsNameOfGUIClass, string fpsKeyWord, string fpsImplemented)
 
void WriteResultXML ()
 
void SaveAs_CSV ()
 
void SaveAs_HTML ()
 

Public Attributes

SerializableDictionary< string,
string > 
cvImplementationMatrix = new SerializableDictionary<string, string>()
 Implementierungs Matix anthält den Implementierungszustand zu einer Klass und Schlüsslewort.
Zu jedem [KlassenName;Schlüsselwort] wird ein EIntrag Ja/Nein vorgenommen.
 
List< string > cvKeywords = new List<string>()
 Eindeutige Liste der Schlüsselwörter. Jedes Schlüsslewort wird hier nur einmal geführt.
 
List< string > cvNamesOfGUIClasses = new List<string>()
 Eindeutige Liste der GUI-KlassenNamen. Jedes GUI-Klasse wird hier nur einmal geführt.
 
string OKW_ImplementationMatrix_xml = string.Empty
 

Static Protected Attributes

static ImplementationMatrix instance = null
 

Properties

static ImplementationMatrix Instance [get]
 Holt die einzige Instanz dieser Klasse. More...
 

Private Member Functions

 ImplementationMatrix ()
 Privater Konstruktor als singelton.
 
void AddImplementation (string fpsKey, string fpsImplemented)
 Fügt eine neue Implementierung der Dictionary cvImplementationMatrix hinzu. Existiert dieser (=fpsKey) noch nicht, dann wird Schlüssel und sein Wert hinzugefügt.
Sollte die Implementierung bereits vorhanden sein, dann wird fpsImplemented an den vorhandenen Wert angehängt. More...
 
void AddKeyword (string fpsKeyword)
 Fügt ein Schlüsselwort der List zu wen dieser noch nicht in der Liste ist. Ziel: Eindeutige List der Schlüsselwörter erstellen. More...
 
void AddNameOfGUIClass (string fpsNameOfGUIClass)
 Fügt den Namen einer Klasse der List cvNamesOfGUIClasses zu, wenn dieser noch nicht in der Liste ist. Ziel: Eindeutige List der Schlüsselwörter erstellen. More...
 

Private Attributes

Logger Log = Logger.Instance
 
bool finalizeMe
 

Detailed Description

ImplentationMatrix wird für die Dokumentaion des Implmentierungs fortschrittes verwendet.

Member Function Documentation

void OKW.ImplementationMatrix.ImplementationMatrix.AddImplementation ( string  fpsKey,
string  fpsImplemented 
)
private

Fügt eine neue Implementierung der Dictionary cvImplementationMatrix hinzu. Existiert dieser (=fpsKey) noch nicht, dann wird Schlüssel und sein Wert hinzugefügt.
Sollte die Implementierung bereits vorhanden sein, dann wird fpsImplemented an den vorhandenen Wert angehängt.

Parameters
fpsKeySchlüssel für das Dictionary, repräsentiert die Implementierung.
fpsImplementedImplementiert, P, F, N wird eingefügt oder angehängt.
301  {
302  if (this.cvImplementationMatrix.ContainsKey(fpsKey))
303  {
304  if (fpsImplemented=="F" & this.cvImplementationMatrix[fpsKey] == "N")
305  {
306  throw new Exception("001: Fehler in Matrix: " + this.cvImplementationMatrix[fpsKey] + "-Wert kann nicht auf 'F' gesetzt werden.");
307  }
308  if (fpsImplemented=="F" & this.cvImplementationMatrix[fpsKey] == "F")
309  {
310  this.cvImplementationMatrix[fpsKey] = "F";
311  }
312  if (fpsImplemented=="F" & this.cvImplementationMatrix[fpsKey] == "P")
313  {
314  this.cvImplementationMatrix[fpsKey] = "F";
315  }
316  if (fpsImplemented=="P" & this.cvImplementationMatrix[fpsKey] == "N")
317  {
318  throw new Exception("002: Fehler in Matrix: " + this.cvImplementationMatrix[fpsKey] + "-Wert kann nicht auf 'P' gesetzt werden.");
319  }
320  if (fpsImplemented=="P" & this.cvImplementationMatrix[fpsKey] == "F")
321  {
322  this.cvImplementationMatrix[fpsKey] = "F";
323  }
324  if (fpsImplemented=="N" & this.cvImplementationMatrix[fpsKey] == "P")
325  {
326  throw new Exception("003: Fehler in Matrix: " + this.cvImplementationMatrix[fpsKey] + "-Wert kann nicht auf 'N' gesetzt werden.");
327  }
328  if (fpsImplemented=="N" & this.cvImplementationMatrix[fpsKey] == "F")
329  {
330  throw new Exception("004: Fehler in Matrix: " + this.cvImplementationMatrix[fpsKey] + "-Wert kann nicht auf 'N' gesetzt werden.");
331  }
332  if (fpsImplemented=="N" & this.cvImplementationMatrix[fpsKey] == "N")
333  {
334  this.cvImplementationMatrix[fpsKey] = "N";
335  }
336  }
337  else
338  {
339  this.cvImplementationMatrix.Add(fpsKey,fpsImplemented);
340  }
341 
342  return;
343  }
SerializableDictionary< string, string > cvImplementationMatrix
Implementierungs Matix anthält den Implementierungszustand zu einer Klass und Schlüsslewort. Zu jedem [KlassenName;Schlüsselwort] wird ein EIntrag Ja/Nein vorgenommen.
Definition: ImplementationMatrix.cs:63
void OKW.ImplementationMatrix.ImplementationMatrix.AddKeyword ( string  fpsKeyword)
private

Fügt ein Schlüsselwort der List zu wen dieser noch nicht in der Liste ist. Ziel: Eindeutige List der Schlüsselwörter erstellen.

Parameters
fpsKeywordSchlüsselwort welches der Liste cvKeywords Zugefügt werden soll.
462  {
463  if (!this.cvKeywords.Contains(fpsKeyword))
464  {
465  this.cvKeywords.Add(fpsKeyword);
466  }
467 
468  return;
469  }
List< string > cvKeywords
Eindeutige Liste der Schlüsselwörter. Jedes Schlüsslewort wird hier nur einmal geführt.
Definition: ImplementationMatrix.cs:68
void OKW.ImplementationMatrix.ImplementationMatrix.AddNameOfGUIClass ( string  fpsNameOfGUIClass)
private

Fügt den Namen einer Klasse der List cvNamesOfGUIClasses zu, wenn dieser noch nicht in der Liste ist. Ziel: Eindeutige List der Schlüsselwörter erstellen.

Parameters
fpsNameOfGUIClassSchlüsselwort welches der Liste cvKeywords Zugefügt wird.
477  {
478  if (!this.cvNamesOfGUIClasses.Contains(fpsNameOfGUIClass))
479  {
480  this.cvNamesOfGUIClasses.Add(fpsNameOfGUIClass);
481  }
482 
483  return;
484  }
List< string > cvNamesOfGUIClasses
Eindeutige Liste der GUI-KlassenNamen. Jedes GUI-Klasse wird hier nur einmal geführt.
Definition: ImplementationMatrix.cs:73
void OKW.ImplementationMatrix.ImplementationMatrix.Init ( )
Author
Zoltán Hrabovszki
Date
2014.06.11
158  {
159  this.Log.LogFunctionStartDebug(this.GetType().FullName + ".Init");
160 
161  // Klassen Variablen erst löschen...
162  this.OKW_ImplementationMatrix_xml = string.Empty;
163 
164  // Listen und Dictionary Löschen
165  this.cvImplementationMatrix.Clear();
166  this.cvKeywords.Clear();
167  this.cvNamesOfGUIClasses.Clear();
168 
169  // ... und dann alles Initialisieren!
170  // 1. Setze Pfad und
171  this.OKW_ImplementationMatrix_xml = OKW_Ini.Instance.OKW_Enviroment.File_OKW_ImplementationMatrix_xml;
172 
173  if (!string.IsNullOrEmpty(this.OKW_ImplementationMatrix_xml))
174  {
175  this.Log.LogPrintDebug("OKW Memorize Datei = >>" + this.OKW_ImplementationMatrix_xml + "<<");
176  if (System.IO.File.Exists(this.OKW_ImplementationMatrix_xml))
177  {
178  // Lesen der Daten
179  this.Read();
180  }
181  else
182  {
183  // Deafault werte Lesen.
184  this.Log.LogWarning("Datei: >>" + this.OKW_ImplementationMatrix_xml + "<< nicht gefunden.");
185  }
186  }
187  else
188  {
189  this.Log.LogWarning("Enviroment variable 'OKWIni' not set!");
190  }
191 
192  this.Log.LogFunctionEndDebug();
193  return;
194  }
string OKW_ImplementationMatrix_xml
Definition: ImplementationMatrix.cs:83
void OKW.ImplementationMatrix.ImplementationMatrix.Read ( )
Author
Zoltán Hrabovszki
Date
2014.06.11
204  {
205  this.Log.LogFunctionStartDebug( this.GetType().FullName + "Read()");
206 
207  try
208  {
209  XmlSerializer serializer = new XmlSerializer(typeof(ImplementationMatrix));
210  StreamReader fs = new StreamReader(this.OKW_ImplementationMatrix_xml);
211  instance = (ImplementationMatrix)serializer.Deserialize(fs);
212  fs.Close();
213  }
214  finally
215  {
216  this.Log.LogFunctionEndDebug();
217  }
218 
219  return;
220  }
ImplementationMatrix()
Privater Konstruktor als singelton.
Definition: ImplementationMatrix.cs:96
string OKW_ImplementationMatrix_xml
Definition: ImplementationMatrix.cs:83

Here is the call graph for this function:

void OKW.ImplementationMatrix.ImplementationMatrix.Save ( )
Author
Zoltán Hrabovszki
Date
2014.06.11
230  {
231  this.Log.LogFunctionStartDebug(instance.GetType().FullName + "Save()");
232 
233  try
234  {
235  XmlSerializer serializer = new XmlSerializer(typeof(ImplementationMatrix));
236  StreamWriter fs = new StreamWriter(this.OKW_ImplementationMatrix_xml, false);
237  serializer.Serialize(fs, instance);
238  fs.Close();
239  }
240  finally
241  {
242  this.Log.LogFunctionEndDebug();
243  }
244 
245  return;
246  }
ImplementationMatrix()
Privater Konstruktor als singelton.
Definition: ImplementationMatrix.cs:96
string OKW_ImplementationMatrix_xml
Definition: ImplementationMatrix.cs:83

Member Data Documentation

string OKW.ImplementationMatrix.ImplementationMatrix.OKW_ImplementationMatrix_xml = string.Empty
Author
Zoltán Hrabovszki
Date
2013.11.28

Property Documentation

ImplementationMatrix OKW.ImplementationMatrix.ImplementationMatrix.Instance
staticget

Holt die einzige Instanz dieser Klasse.

The instance.


The documentation for this class was generated from the following file: