Class AttributeSemantics
- java.lang.Object
-
- de.bsvrz.pua.prot.interpreter.semantics.AttributeSemantics
-
- All Implemented Interfaces:
SemanticChecks
public class AttributeSemantics extends java.lang.Object implements SemanticChecks
Zum Verwalten der Realen Attribute aus dem 'Spalten' Bereich. D.h. wenn erst der Filterbereich kommt, dann müssen die Attribute nicht in attributeInformation abgelegt werden, und storeAggregationinformation muss diese Liste nicht nach passenden Attributen durchsuchen.INFO Performance und Speicherverbrauch kann verbessert werden, wenn überprüft wird, welcher Bereich zuerst kommt.
-
-
Constructor Summary
Constructors Constructor Description AttributeSemantics()
Konstruktor
-
Method Summary
Modifier and Type Method Description void
cleanUp(ProcessingParameter pp, boolean processScript)
Führt abschließende Semantische Überprüfungen durch.void
incAttributeCount()
Erhöht den Attributzähler.RealAttributeDescription[]
storeAggregationInformation(RealAttributeDescription[] attributes)
Hinterlegt Aggregationsinformationen für die Attribute.RealAttributeDescription[]
storeAttributeInformation(RealAttributeDescription[] attributes)
Hinterlegt Attributsbeschreibungen.
-
-
-
Method Detail
-
storeAggregationInformation
public RealAttributeDescription[] storeAggregationInformation(RealAttributeDescription[] attributes) throws SemanticErrorException
Hinterlegt Aggregationsinformationen für die Attribute. Wenn für die übergebenen Attributbeschreibungen bereits weitere Informationen hinterlegt wurden, dann werden die Aggregationsinformationen dort eingetragen.- Parameters:
attributes
- Attributbeschreibungen mit Aggregationsinformationen.- Returns:
- Liefert das übergebene Feld zurück.
- Throws:
SemanticErrorException
- Falls zu einem Attribut unterschiedliche Aggregationsinformationen hinterlegt wreden.- See Also:
storeAttributeInformation(RealAttributeDescription[])
-
storeAttributeInformation
public RealAttributeDescription[] storeAttributeInformation(RealAttributeDescription[] attributes)
Hinterlegt Attributsbeschreibungen. Wenn für die übergebenen Attributsbeschreibungen Aggregationsinformationen vorliegen. dann werden diese Aggregationsinformationen die übergebenen Attribut einkopiert.- Parameters:
attributes
- Attributbeschreibungen- Returns:
- Attributbeschreibungen mit ggf. eingefügter Aggregationsinformation
- See Also:
storeAggregationInformation(RealAttributeDescription[])
-
incAttributeCount
public void incAttributeCount()
Erhöht den Attributzähler.
-
cleanUp
public void cleanUp(ProcessingParameter pp, boolean processScript) throws SemanticErrorException
Führt abschließende Semantische Überprüfungen durch.- Specified by:
cleanUp
in interfaceSemanticChecks
- Parameters:
pp
- Wird nicht berücksichtigtprocessScript
- Keine Bedeutung- Throws:
SemanticErrorException
- Es wird kein reales Attribut verwendet.
-
-