|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object krieger.oclsolve.PropertyContainer<PID,CID>
PID
- The type used for identifying properties.CID
- The type used for identifying classes.public class PropertyContainer<PID,CID>
Represents a container for (UML) properties.
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 |
---|
public PropertyContainer(ClassifierFactory<CID> classifierFactory)
PropertyContainer
from a ClassifierFactory
.
Method Detail |
---|
public Property getProperty(PID key, boolean markedPre)
public void addAttribute(PID key, CID owningClass, Classifier<?> type, boolean constant)
constant
- Whether the attribute can be changed by constraint solving.public void addAssociation(PID key1, PID key2, CID class1, Multiplicity mult1, CID class2, Multiplicity mult2, boolean constant)
constant
- Whether the association can be changed by constraint solving.public void addToProblem(Problem problem)
Declaration
Problem
.
addToProblem
in interface Declaration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |