|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.utwente.CoCompose.lang.ModelVisitor | +--EDU.utwente.CoCompose.translate.FlattenVisitor
Flattens the model using available solution patterns.
Field Summary | |
protected boolean |
flattenNeeded
Deprecated. When false, flattening did not change model, so it was not needed. |
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
log |
Constructor Summary | |
FlattenVisitor()
Deprecated. Constructs a FlattenVisitor. |
Method Summary | |
protected void |
addDontFlatten(Composite composite)
Deprecated. Adds a composite to the set of composites that should not be flattened. |
protected void |
addDontFlattenType(java.lang.String type)
Deprecated. Adds a composite type to the set of composite types that should not be flattened. |
protected void |
addFlatModel(Model flatModel)
Deprecated. Adds a flattened model to the collection of flattened models. |
protected boolean |
dontFlatten(Composite composite)
Deprecated. Checks whether a composite should be flattened based on the set of composites that need not be flattened. |
protected java.util.Set |
getDontFlatten()
Deprecated. Gets the set of composites that should not be flattened. |
protected java.util.Set |
getDontFlattenTypes()
Deprecated. Gets the set of composite types that should not be flattened. |
java.util.Collection |
getFlatModels()
Deprecated. Gets the flattened models so far. |
protected boolean |
getFull()
Deprecated. Gets full flattening. |
protected void |
setDontFlatten(java.util.Set composites)
Deprecated. Sets the set of composites that should not be flattened. |
protected void |
setDontFlattenTypes(java.util.Set types)
Deprecated. Sets the set of composite types that should not be flattened. |
protected void |
setFlatModels(java.util.Collection flatModels)
Deprecated. Sets the flattened models so far. |
void |
setFull(boolean full)
Deprecated. Sets full flattening. |
void |
setLogger(Logger logger)
Deprecated. Sets the logger object. |
void |
visitComposite(Composite composite)
Deprecated. Flattens a Composite object. |
void |
visitModel(Model model)
Deprecated. Flattens the model. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setUpdate, startModel, visitAbstractConcept, visitCompositePartConcept, visitCompositeRole, visitConcept, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean flattenNeeded
Constructor Detail |
public FlattenVisitor()
Method Detail |
protected boolean getFull()
protected void setFlatModels(java.util.Collection flatModels)
flatModels
- The collection of flattened models.protected void addFlatModel(Model flatModel)
flatModel
- The flattened model to add.protected boolean dontFlatten(Composite composite)
composite
- The compositeprotected java.util.Set getDontFlatten()
protected void addDontFlatten(Composite composite)
composite
- The composite that should not be flattened.protected void setDontFlatten(java.util.Set composites)
composites
- The set of composites that should not be flattened.protected java.util.Set getDontFlattenTypes()
protected void addDontFlattenType(java.lang.String type)
type
- The composite type that should not be flattened.protected void setDontFlattenTypes(java.util.Set types)
types
- The set of composite types that should not be flattened.public void setLogger(Logger logger)
setLogger
in class ModelVisitor
logger
- The object to log topublic void setFull(boolean full)
full
- If true, does full flattening, otherwise one level flattening.public java.util.Collection getFlatModels()
public void visitModel(Model model) throws CoComposeException
visitModel
in class ModelVisitor
model
- The model to flatten.CoComposeException
- if one of the model's constraints are not fulfilled or
if the model could not be flattened.public void visitComposite(Composite composite) throws CoComposeException
visitComposite
in class ModelVisitor
composite
- - the composite to flatten.CoComposeException
- - if the composite cannot be flattened for
the target language of the model.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |