Class Model


  • public class Model
    extends java.lang.Object
    Objects 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Model​(ModelType modelType)
      Sole constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEntity​(Entity entity)
      Method for adding one new entity to this model.
      Entity getEntity​(int index)
      Returns an entity specified by index.
      int getEntityCount()
      Returns the number of entities.
      ModelType getModelType()
      Returns which kind of model/information are stored in this simple representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • entities

        private java.util.ArrayList<Entity> entities
    • 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 by index.
        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.