Class Model
- java.lang.Object
-
- net.ssehub.easy.producer.core.persistence.datatypes.Model
-
public class Model extends java.lang.ObjectObjects of this class stores information related to exactly one model. Supported models are:- Information, which ivml model should be loaded
- Transformer settings
- Related projects
- Configured Binding Times
- Author:
- El-Sharkawy
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntity(Entity entity)Method for adding one new entity to this model.EntitygetEntity(int index)Returns an entity specified byindex.intgetEntityCount()Returns the number of entities.ModelTypegetModelType()Returns which kind of model/information are stored in this simple representation.
-
-
-
Constructor Detail
-
Model
public Model(ModelType modelType)
Sole constructor for this class.- Parameters:
modelType- The type of information, which should be stored.
-
-
Method Detail
-
getModelType
public ModelType getModelType()
Returns which kind of model/information are stored in this simple representation.- Returns:
- The type of information represented by this model object.
-
getEntity
public Entity getEntity(int index)
Returns an entity specified byindex.- Parameters:
index- a 0-based index specifying entity to be returned- Returns:
- all existing entities of this model
- Throws:
java.lang.IndexOutOfBoundsException- if the index is out of range (index < 0 || index >= size())
-
getEntityCount
public int getEntityCount()
Returns the number of entities.- Returns:
- the number of entities.
-
addEntity
public void addEntity(Entity entity)
Method for adding one new entity to this model.- Parameters:
entity- The entity, which should be added to this model.
-
-