de.bsvrz.pua.prot.interpreter.semantics
Class AttributeSemantics

java.lang.Object
  extended by 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.

Version:
$Revision: 1.1 $ / $Date: 2008/01/22 16:38:04 $ / ($Author: yvonnes $)
Author:
beck et al. projects GmbH, Martin Hilgers

Constructor Summary
AttributeSemantics()
          Konstruktor
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSemantics

public AttributeSemantics()
Konstruktor

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. Überprüft, ob mindestens ein reales Attribut (direkt oder durch ein temporäres Attribut referenziert) im Skript vorkommt.

Specified by:
cleanUp in interface SemanticChecks
Parameters:
pp - Wird nicht berücksichtigt
processScript - Keine Bedeutung
Throws:
SemanticErrorException - Es wird kein reales Attribut verwendet.


Copyright © 2005-2008 beck et al. projects GmbH All Rights Reserved.