Package jsl.observers

Class ModelElementObserver

    • Field Detail

      • myName

        protected java.lang.String myName
    • Constructor Detail

      • ModelElementObserver

        public ModelElementObserver()
      • ModelElementObserver

        public ModelElementObserver​(java.lang.String name)
    • Method Detail

      • setName

        public final void setName​(java.lang.String str)
        Sets the name of this model element
        Parameters:
        str - The name as a string.
      • getName

        public final java.lang.String getName()
        Gets this model element observer's name.
        Specified by:
        getName in interface GetNameIfc
        Returns:
        The name of the model element observer
      • getId

        public final int getId()
        Gets a uniquely assigned integer identifier for this model element observer. This identifier is assigned when the model element observer is created. It may vary if the order of creation changes.
        Specified by:
        getId in interface IdentityIfc
        Returns:
        The identifier for the model element observer
      • update

        public void update​(java.lang.Object observable,
                           java.lang.Object arg)
        Description copied from interface: ObserverIfc
        This method is called when the observable needs observing
        Specified by:
        update in interface ObserverIfc
        Parameters:
        observable - the thing observed
        arg - an object of info
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getModelElement

        protected final ModelElement getModelElement()
      • setModelElement

        protected final void setModelElement​(ModelElement m)
      • beforeExperiment

        protected void beforeExperiment​(ModelElement m,
                                        java.lang.Object arg)
      • beforeReplication

        protected void beforeReplication​(ModelElement m,
                                         java.lang.Object arg)
      • initialize

        protected void initialize​(ModelElement m,
                                  java.lang.Object arg)
      • montecarlo

        protected void montecarlo​(ModelElement m,
                                  java.lang.Object arg)
      • replicationEnded

        protected void replicationEnded​(ModelElement m,
                                        java.lang.Object arg)
      • afterReplication

        protected void afterReplication​(ModelElement m,
                                        java.lang.Object arg)
      • update

        protected void update​(ModelElement m,
                              java.lang.Object arg)
      • warmUp

        protected void warmUp​(ModelElement m,
                              java.lang.Object arg)
      • timedUpdate

        protected void timedUpdate​(ModelElement m,
                                   java.lang.Object arg)
      • afterExperiment

        protected void afterExperiment​(ModelElement m,
                                       java.lang.Object arg)
      • removedFromModel

        protected void removedFromModel​(ModelElement m,
                                        java.lang.Object arg)