public class AggregationSemantics extends java.lang.Object implements SemanticChecks
Constructor and Description |
---|
AggregationSemantics(Semantics semantics,
SymbolTable symbolTable,
AttributeSemantics attributeSemantics,
RealAttributeSemantics realAttributeSemantics)
Konstruktor
|
Modifier and Type | Method and Description |
---|---|
void |
addAggregation(antlr.collections.AST ast,
java.util.List<java.lang.String> attributeQualifier,
java.util.List<java.lang.String> aggregations,
boolean padData)
Fügt einem Attribut eine Aggregation hinzu.
|
void |
addAggregationForDuration(antlr.collections.AST ast,
java.util.List<java.lang.String> aggregationName)
Fügt dem Zeitdauer Attribut eine Aggregation hinzu.
|
void |
cleanUp(ProcessingParameter pp,
boolean processScript)
Überprüft, ob Aggregationen verwendet werden, falls das Schlüsselwort 'anwendung' im Skript verwendet wird.
|
void |
setOrder(java.util.HashSet<ProcessingInformation.ApplyAggregation> order)
Legt die Anwendungsart der Aggregationen fest
|
public AggregationSemantics(Semantics semantics, SymbolTable symbolTable, AttributeSemantics attributeSemantics, RealAttributeSemantics realAttributeSemantics)
semantics
- Hauptobjekt der Semantiküberprüfung.symbolTable
- Symboltabelle.attributeSemantics
- Semantiküberprüfung für die Attribute.realAttributeSemantics
- Semantiküberprüfung für reale Attribute.public void addAggregation(antlr.collections.AST ast, java.util.List<java.lang.String> attributeQualifier, java.util.List<java.lang.String> aggregations, boolean padData) throws CriticalParserException
ast
- Knoten (wird nur für Zeilenangabe in der Fehlermeldung benötigt)attributeQualifier
- AttributeQualifieraggregations
- AggregationspadData
- true
falls Daten durch die Datenaufbereitung aufgefüllt werden sollen.CriticalParserException
- Kommunikationsfehler oder falls die Qualifizierung nicht korrekt ist oder falls die angegebene Aggregationsfunktion nicht
existiertpublic void addAggregationForDuration(antlr.collections.AST ast, java.util.List<java.lang.String> aggregationName) throws CriticalParserException
ast
- Knoten (wird nur für die Zeilenangabe in der Fehlermeldung benötigt)aggregationName
- Einelementige Liste mit dem Namen der AggregationCriticalParserException
- Kommunikationsfehlerpublic void setOrder(java.util.HashSet<ProcessingInformation.ApplyAggregation> order) throws SemanticErrorException
order
- OrderSemanticErrorException
- Falls Wiederholungen in der anwendung auftreten (etwa weil gleichzeitig sowohl gesamt(objekt) als auch gesamt(spalte)
verwendet wurde)public void cleanUp(ProcessingParameter pp, boolean processScript) throws SemanticErrorException
cleanUp
in interface SemanticChecks
pp
- AuftragsparameterprocessScript
- Fals true, dann müssen die Daten bereit für die Datenaufbereitung sein.SemanticErrorException
- Fehler bei der semantischen Überprüfung.SemanticChecks.cleanUp(de.bsvrz.pua.prot.util.ProcessingParameter,boolean)