Class ScanApplication.ScanningTask
java.lang.Object
org.scictrl.csshell.epics.server.application.ScanApplication.ScanningTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
ScanApplication
Runnable performing scan.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface that facilitates connection to undelaying services and context. -
Constructor Summary
ConstructorsConstructorDescriptionScanningTask(double start, double end, double step, long rate, int count, ScanApplication.Repeat repeat, double precision, ScanApplication.ScanningTask.ScanController ctrl, int overflowCount) Creates scan/ramp task -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Abort scan.voidcancel()Cancels and aborts the scan.Returns next time step should happen, could be null if there is no next stepbooleanReturnstrueif scan has been aborted.booleanReturnstrueif scan has been canceled.voidramp(double rStart, double rEnd, double rStep) Ramps remote value from start to end in steps.voidrun()
-
Constructor Details
-
ScanningTask
public ScanningTask(double start, double end, double step, long rate, int count, ScanApplication.Repeat repeat, double precision, ScanApplication.ScanningTask.ScanController ctrl, int overflowCount) Creates scan/ramp task- Parameters:
start- the start valueend- the end valuestep- the step sizerate- the time to wait between steps in mscount- the repetition count, 0 means one run without repetitionrepeat- repetition specificationprecision- value precision, determines how precise end value can bectrl- the scan control that provides underlying context servicesoverflowCount- hard limit that prevents runaway stepping
-
-
Method Details
-
getNextStepTime
Returns next time step should happen, could be null if there is no next step- Returns:
- next time step should happen
-
abort
public void abort()Abort scan. Scan progress is stopped. ScanController is notified that scan has been aborted. -
cancel
public void cancel()Cancels and aborts the scan. Scan progress is stopped, there is no notification to ScanController. -
isCanceled
public boolean isCanceled()Returnstrueif scan has been canceled.- Returns:
trueif scan has been canceled
-
isAborted
public boolean isAborted()Returnstrueif scan has been aborted.- Returns:
trueif scan has been aborted
-
run
public void run() -
ramp
public void ramp(double rStart, double rEnd, double rStep) Ramps remote value from start to end in steps.- Parameters:
rStart- start valuerEnd- end valuerStep- step size
-