Class ArrayProcess.ArrayElementJob

    • Field Detail

      • m_ArrayElement

        protected Object m_ArrayElement
        the array element.
      • m_ArrayIndex

        protected int m_ArrayIndex
        the index.
      • m_Sub

        protected SubProcess m_Sub
        the sub-process used for execution.
    • Constructor Detail

      • ArrayElementJob

        public ArrayElementJob​(ArrayProcess owner,
                               int arrayIndex,
                               Object arrayElement)
        Initializes the job.
        owner - the ArrayProcess this job belongs to
        arrayIndex - the index in the array
        arrayElement - the array element at the specified index
    • Method Detail

      • getSub

        public SubProcess getSub()
        Returns the underlying SubProcess instance.
        the actor, can be null
      • preProcessCheck

        protected String preProcessCheck()
        Checks whether all pre-conditions have been met.
        Specified by:
        preProcessCheck in class AbstractJob
        null if everything is OK, otherwise an error message
      • process

        protected void process()
                        throws Exception
        Does the actual execution of the job.
        Specified by:
        process in class AbstractJob
        Exception - if fails to execute job
      • postProcessCheck

        protected String postProcessCheck()
        Checks whether all post-conditions have been met.
        Specified by:
        postProcessCheck in class AbstractJob
        null if everything is OK, otherwise an error message
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory. Removes dependencies and job parameters.
        Specified by:
        cleanUp in interface CleanUpHandler
        Specified by:
        cleanUp in interface Job
        cleanUp in class AbstractJob
      • toString

        public String toString()
        Returns a string representation of this job.
        Specified by:
        toString in class AbstractJob
        the job as string