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 newCInstance
instance without effects and subcomponents (only for classCClass.COMPONENT
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addComponent(String name, CInstance cInst)
Adds the given component under the given name.(package private) void
addEffect(String name, SInstance sInst)
Adds the given effect under the given name.FlatCInstance
flatten()
SInstance
getEffect(List<String> path)
(package private) Map<String,SInstance>
getEffects()
String
toString()
-
-
-
Constructor Detail
-
CInstance
public CInstance()
Creates a newCInstance
instance 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
- aString
representing the name ofsInst
.sInst
- anSInstance
saved under the given name.
-
addComponent
void addComponent(String name, CInstance cInst)
Adds the given component under the given name.- Parameters:
name
- aString
representing the name ofcInst
.cInst
- anSInstance
saved under the given name.
-
flatten
public FlatCInstance flatten()
-
-