krieger.oclsolve
Class PropertyContainer<PID,CID>

java.lang.Object
  extended by krieger.oclsolve.PropertyContainer<PID,CID>
Type Parameters:
PID - The type used for identifying properties.
CID - The type used for identifying classes.
All Implemented Interfaces:
java.io.Serializable, Declaration

public class PropertyContainer<PID,CID>
extends java.lang.Object
implements Declaration

Represents a container for (UML) properties.

See Also:
Serialized Form

Constructor Summary
PropertyContainer(ClassifierFactory<CID> classifierFactory)
          Creates a PropertyContainer from a ClassifierFactory.
 
Method Summary
 void addAssociation(PID key1, PID key2, CID class1, Multiplicity mult1, CID class2, Multiplicity mult2, boolean constant)
          Adds an association to the container.
 void addAttribute(PID key, CID owningClass, Classifier<?> type, boolean constant)
          Adds an attribute to the container.
 void addToProblem(Problem problem)
          Adds this declaration to the given Problem.
 Property getProperty(PID key, boolean markedPre)
          Looks up a property in the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyContainer

public PropertyContainer(ClassifierFactory<CID> classifierFactory)
Creates a PropertyContainer from a ClassifierFactory.

Method Detail

getProperty

public Property getProperty(PID key,
                            boolean markedPre)
Looks up a property in the container.


addAttribute

public void addAttribute(PID key,
                         CID owningClass,
                         Classifier<?> type,
                         boolean constant)
Adds an attribute to the container.

Parameters:
constant - Whether the attribute can be changed by constraint solving.

addAssociation

public void addAssociation(PID key1,
                           PID key2,
                           CID class1,
                           Multiplicity mult1,
                           CID class2,
                           Multiplicity mult2,
                           boolean constant)
Adds an association to the container.

Parameters:
constant - Whether the association can be changed by constraint solving.

addToProblem

public void addToProblem(Problem problem)
Description copied from interface: Declaration
Adds this declaration to the given Problem.

Specified by:
addToProblem in interface Declaration