Package de.uka.ipd.sdq.simucomframework
Class SimuComSimProcess
java.lang.Object
de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
de.uka.ipd.sdq.simucomframework.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 Summary
Modifier and TypeFieldDescriptionprotected long
protected static final org.apache.log4j.Logger
Logger for this class.Fields inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
NULL
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimuComSimProcess
(SimuComModel model, String name, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) protected
SimuComSimProcess
(SimuComModel model, String name, org.palladiosimulator.probeframework.measurement.RequestContext parentRequestContext, de.uka.ipd.sdq.scheduler.resources.active.IResourceTableManager resourceTableManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
protected void
Clients may override default behaviour, e.g., PassiveResourcevoid
addTerminatedObserver
(de.uka.ipd.sdq.scheduler.IActiveResource r) void
long
getModel()
int
org.palladiosimulator.probeframework.measurement.RequestContext
Returns theRequestContext
in which this simulated process is executed.de.uka.ipd.sdq.scheduler.ISchedulableProcess
void
hold
(double d) protected abstract void
boolean
final void
void
notifyResuming
(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process) void
notifySuspending
(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process) void
notifyTerminated
(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process) protected void
void
removeTerminatedObserver
(de.uka.ipd.sdq.scheduler.IActiveResource r) void
setPriority
(int priority) void
protected void
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimProcessDelegator
addProcessListener, getId, getRawId, isTerminated, passivate, passivate, preempt, removeProcessListener, scheduleAt
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator
getEncapsulatedEntity, isScheduled, reschedule
Methods inherited from class de.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.IEntity
isScheduled, reschedule
Methods inherited from interface de.uka.ipd.sdq.scheduler.ISchedulableProcess
getId, passivate
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGERLogger for this class. -
currentSessionId
protected long currentSessionId
-
-
Constructor Details
-
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 Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
setPriority
public void setPriority(int priority) - Specified by:
setPriority
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
activate
public void activate()- Specified by:
activate
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
timeout
- Specified by:
timeout
in interfacede.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 interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
fireTerminated
public void fireTerminated()- Specified by:
fireTerminated
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
getCurrentSessionId
public long getCurrentSessionId() -
getRequestContext
public org.palladiosimulator.probeframework.measurement.RequestContext getRequestContext()Returns theRequestContext
in which this simulated process is executed.- Returns:
- the request context
-
getRootProcess
public de.uka.ipd.sdq.scheduler.ISchedulableProcess getRootProcess()- Specified by:
getRootProcess
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
getSimProcessStatus
-
hold
public void hold(double d) -
internalLifeCycle
protected abstract void internalLifeCycle() -
isFinished
public boolean isFinished()- Specified by:
isFinished
in interfacede.uka.ipd.sdq.scheduler.ISchedulableProcess
-
lifeCycle
public final void lifeCycle()- Specified by:
lifeCycle
in classde.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 interfacede.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 interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
-
notifySuspending
public void notifySuspending(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process) - Specified by:
notifySuspending
in interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
-
notifyTerminated
public void notifyTerminated(de.uka.ipd.sdq.simulation.abstractsimengine.ISimProcess process) - Specified by:
notifyTerminated
in interfacede.uka.ipd.sdq.simulation.abstractsimengine.ISimProcessListener
-
getModel
- Overrides:
getModel
in classde.uka.ipd.sdq.simulation.abstractsimengine.SimulationElement
-