Package eu.simuline.relana.model
Class CInstance
- java.lang.Object
-
- eu.simuline.relana.model.CInstance
-
public final class CInstance extends Object
Instance of Component. Created: Thu Apr 14 23:02:05 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Constructor Summary
Constructors Constructor Description CInstance()Creates a newCInstanceinstance without effects and subcomponents (only for classCClass.COMPONENT).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddComponent(String name, CInstance cInst)Adds the given component under the given name.(package private) voidaddEffect(String name, SInstance sInst)Adds the given effect under the given name.FlatCInstanceflatten()SInstancegetEffect(List<String> path)(package private) Map<String,SInstance>getEffects()StringtoString()
-
-
-
Constructor Detail
-
CInstance
public CInstance()
Creates a newCInstanceinstance without effects and subcomponents (only for classCClass.COMPONENT).
-
-
Method Detail
-
addEffect
void addEffect(String name, SInstance sInst)
Adds the given effect under the given name.- Parameters:
name- aStringrepresenting the name ofsInst.sInst- anSInstancesaved under the given name.
-
addComponent
void addComponent(String name, CInstance cInst)
Adds the given component under the given name.- Parameters:
name- aStringrepresenting the name ofcInst.cInst- anSInstancesaved under the given name.
-
flatten
public FlatCInstance flatten()
-
-