|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.elk.impl.device.process.AbstractProcess
org.cip4.elk.impl.device.process.ConventionalPrintingSimulation
public class ConventionalPrintingSimulation
| Field Summary |
|---|
| Fields inherited from class org.cip4.elk.impl.device.process.AbstractProcess |
|---|
nodeStatusEventNotifier, processStatusEventNotifier, resourceEventNotifier |
| Constructor Summary | |
|---|---|
ConventionalPrintingSimulation(int deviceSpeed,
org.cip4.elk.device.process.JDFNodeSelector nodeSelector,
org.cip4.elk.device.DeviceConfig deviceConfig)
Creates a new simulated ConventionalPrinting Process. |
|
| Method Summary | |
|---|---|
void |
abortJob()
|
void |
destroy()
|
void |
fireNodeStatusEvent(org.cip4.elk.device.process.NodeStatusEvent event)
|
void |
fireProcessStatusEvent(org.cip4.elk.device.process.ProcessStatusEvent event)
|
void |
fireResourceEvent(org.cip4.elk.device.process.ResourceEvent event)
|
void |
flushResources()
|
org.cip4.elk.device.DeviceConfig |
getDeviceConfig()
|
int |
getDeviceSpeed()
Gets the speed of the device. |
org.cip4.jdflib.jmf.JDFJobPhase |
getJobPhase()
|
org.cip4.jdflib.node.JDFNode |
getNode()
Returns the JDF node currently being processed by the device. |
org.cip4.elk.device.process.JDFNodeSelector |
getNodeSelector()
|
org.cip4.elk.device.process.Process |
getProcess()
|
java.lang.String[] |
getProcessTypes()
|
org.cip4.jdflib.node.JDFNode |
getRunningJDFNode()
|
org.cip4.elk.queue.QueueEntry |
getRunningQueueEntry()
|
org.cip4.jdflib.auto.JDFAutoDeviceInfo.EnumDeviceStatus |
getStatus()
|
void |
init()
|
boolean |
isStopped()
|
void |
resumeJob()
Resumes a stopped/paused job. |
void |
runJob(org.cip4.elk.queue.QueueEntry queueEntry)
|
void |
setDeviceSpeed(int speed)
Sets the speed of the device. |
void |
sleep()
|
void |
stopJob()
Stops/pauses the executing job. |
void |
suspendJob()
Suspends the executing job. |
void |
testRunJob(java.lang.String arg0)
|
void |
wakeUp()
|
| Methods inherited from class org.cip4.elk.impl.device.process.AbstractProcess |
|---|
addNodeStatusEventListener, addProcessStatusEventListener, addResourceEventListener, fireEvent, fireEvent, fireEvent, removeNodeStatusEventListener, removeProcessStatusEventListener, removeResourceEventListener, setJobStatusEventListeners, setProcessStatusEventListeners, setResourceEventListeners |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.cip4.elk.impl.device.process.state.DeviceStateContext |
|---|
addNodeStatusEventListener |
| Constructor Detail |
|---|
public ConventionalPrintingSimulation(int deviceSpeed,
org.cip4.elk.device.process.JDFNodeSelector nodeSelector,
org.cip4.elk.device.DeviceConfig deviceConfig)
deviceSpeed - the speed of the press, sheets/hournodeSelector - the JDFNodeSelector used for selecting JDF
nodes to executedeviceConfig - the configuration of device this Process's
belongs to| Method Detail |
|---|
public void runJob(org.cip4.elk.queue.QueueEntry queueEntry)
throws java.lang.Exception
runJob in interface org.cip4.elk.device.process.Processjava.lang.Exceptionpublic java.lang.String[] getProcessTypes()
getProcessTypes in interface org.cip4.elk.device.process.Processpublic void abortJob()
abortJob in interface org.cip4.elk.device.process.Processpublic void destroy()
destroy in interface org.cip4.elk.device.process.Processdestroy in interface org.cip4.elk.lifecycle.Lifecyclepublic void flushResources()
flushResources in interface org.cip4.elk.device.process.Processpublic org.cip4.elk.device.DeviceConfig getDeviceConfig()
getDeviceConfig in interface org.cip4.elk.device.process.ProcessgetDeviceConfig in interface DeviceStateContextpublic org.cip4.jdflib.jmf.JDFJobPhase getJobPhase()
getJobPhase in interface org.cip4.elk.device.process.Processpublic org.cip4.jdflib.node.JDFNode getRunningJDFNode()
getRunningJDFNode in interface org.cip4.elk.device.process.Processpublic org.cip4.elk.queue.QueueEntry getRunningQueueEntry()
getRunningQueueEntry in interface org.cip4.elk.device.process.Processpublic org.cip4.jdflib.auto.JDFAutoDeviceInfo.EnumDeviceStatus getStatus()
getStatus in interface org.cip4.elk.device.process.Processpublic void init()
init in interface org.cip4.elk.device.process.Processinit in interface org.cip4.elk.lifecycle.Lifecyclepublic void resumeJob()
resumeJob in interface org.cip4.elk.device.process.ProcessresumeJob()public void sleep()
sleep in interface org.cip4.elk.device.process.Processpublic void suspendJob()
runJob(QueueEntry) will return so the other jobs can be
executed instead.
suspendJob in interface org.cip4.elk.device.process.Processpublic void testRunJob(java.lang.String arg0)
testRunJob in interface org.cip4.elk.device.process.Processpublic void wakeUp()
wakeUp in interface org.cip4.elk.device.process.Processpublic boolean isStopped()
public void stopJob()
resumeJob().
stopJob in interface org.cip4.elk.device.process.ProcessresumeJob()public void fireNodeStatusEvent(org.cip4.elk.device.process.NodeStatusEvent event)
fireNodeStatusEvent in interface DeviceStateContextpublic void fireProcessStatusEvent(org.cip4.elk.device.process.ProcessStatusEvent event)
fireProcessStatusEvent in interface DeviceStateContextpublic void fireResourceEvent(org.cip4.elk.device.process.ResourceEvent event)
fireResourceEvent in interface DeviceStateContextpublic org.cip4.jdflib.node.JDFNode getNode()
DeviceStateContext
getNode in interface DeviceStateContextpublic org.cip4.elk.device.process.JDFNodeSelector getNodeSelector()
getNodeSelector in interface DeviceStateContextpublic void setDeviceSpeed(int speed)
DeviceStateContext
setDeviceSpeed in interface DeviceStateContextpublic int getDeviceSpeed()
DeviceStateContext
getDeviceSpeed in interface DeviceStateContextpublic org.cip4.elk.device.process.Process getProcess()
getProcess in interface DeviceStateContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||