Class SimuComSimProcess

  • All Implemented Interfaces:
    de.uka.ipd.sdq.scheduler.ISchedulableProcess, de.uka.ipd.sdq.simulation.abstractsimengine.IEntity, de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess, de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
    Direct Known Subclasses:
    ClosedWorkloadUser, ForkedBehaviourProcess, OpenWorkload, OpenWorkloadUser

    public abstract class SimuComSimProcess
    extends de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
    implements de.uka.ipd.sdq.scheduler.ISchedulableProcess, de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
    • Field Detail

      • LOGGER

        protected static final org.apache.log4j.Logger LOGGER
        Logger for this class.
      • currentSessionId

        protected long currentSessionId
    • Constructor Detail

      • SimuComSimProcess

        protected SimuComSimProcess​(SimuComModel model,
                                    String name,
                                    de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
      • SimuComSimProcess

        protected SimuComSimProcess​(SimuComModel model,
                                    String name,
                                    org.palladiosimulator.probeframework.measurement.RequestContext parentRequestContext,
                                    de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager)
    • Method Detail

      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • setPriority

        public void setPriority​(int priority)
        Specified by:
        setPriority in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • activate

        public void activate()
        Specified by:
        activate in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • timeout

        public void timeout​(String timeoutFailureTypeId)
        Specified by:
        timeout in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • addProcessToSimStatus

        protected void addProcessToSimStatus()
        Clients may override default behaviour, e.g., PassiveResource
      • addTerminatedObserver

        public void addTerminatedObserver​(de.uka.ipd.sdq.scheduler.IActiveResource r)
        Specified by:
        addTerminatedObserver in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • fireTerminated

        public void fireTerminated()
        Specified by:
        fireTerminated in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • getCurrentSessionId

        public long getCurrentSessionId()
      • getRequestContext

        public org.palladiosimulator.probeframework.measurement.RequestContext getRequestContext()
        Returns the RequestContext in which this simulated process is executed.
        Returns:
        the request context
      • getRootProcess

        public de.uka.ipd.sdq.scheduler.ISchedulableProcess getRootProcess()
        Specified by:
        getRootProcess in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • getSimProcessStatus

        public Process getSimProcessStatus()
      • hold

        public void hold​(double d)
      • internalLifeCycle

        protected abstract void internalLifeCycle()
      • isFinished

        public boolean isFinished()
        Specified by:
        isFinished in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • lifeCycle

        public final void lifeCycle()
        Specified by:
        lifeCycle in class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
      • removeProcessFromSimStatus

        protected void removeProcessFromSimStatus()
      • removeTerminatedObserver

        public void removeTerminatedObserver​(de.uka.ipd.sdq.scheduler.IActiveResource r)
        Specified by:
        removeTerminatedObserver in interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
      • updateNewSessionID

        protected void updateNewSessionID()
      • notifyResuming

        public void notifyResuming​(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process)
        Specified by:
        notifyResuming in interface de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
      • notifySuspending

        public void notifySuspending​(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process)
        Specified by:
        notifySuspending in interface de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
      • notifyTerminated

        public void notifyTerminated​(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process)
        Specified by:
        notifyTerminated in interface de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
      • getModel

        public SimuComModel getModel()
        Overrides:
        getModel in class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement