Class CInstance


  • public final class CInstance
    extends Object
    Instance of Component. Created: Thu Apr 14 23:02:05 2005
    Version:
    1.0
    Author:
    Ernst Reissner
    • Field Detail

      • effects

        private final Map<String,​SInstance> effects
        Maps the names of the effects to their instances.
      • components

        private final Map<String,​CInstance> components
        Maps the names of the subcomponents to their instances.
    • Constructor Detail

      • CInstance

        public CInstance()
        Creates a new CInstance instance without effects and subcomponents (only for class CClass.COMPONENT).
    • Method Detail

      • addEffect

        void addEffect​(String name,
                       SInstance sInst)
        Adds the given effect under the given name.
        Parameters:
        name - a String representing the name of sInst.
        sInst - an SInstance saved under the given name.
      • addComponent

        void addComponent​(String name,
                          CInstance cInst)
        Adds the given component under the given name.
        Parameters:
        name - a String representing the name of cInst.
        cInst - an SInstance saved under the given name.