Class ScanApplication
java.lang.Object
org.scictrl.csshell.epics.server.application.AbstractApplication
org.scictrl.csshell.epics.server.application.ScanApplication
- All Implemented Interfaces:
Application
,OnDemandValueProcessor.ValueProvider
ScanApplication class.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Repeat instruction.static class
Runnable performing scan.static enum
Start point instruction. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantCOUNT="Count"
static final String
ConstantREPEAT="Repeat"
static final String
ConstantSETPOINT="Setpoint"
static final String
ConstantSTATUS="Status"
Fields inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
database, DEFAULT_NAME_DELIMITER, dynamicRecordCreator, ERROR_SUM, LINK_ERROR, LINK_ERROR_STRING, links, log, name, NAME_DELIMITER, nameDelimiter, records
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Application has now reference to Database.void
Configures the internals of this application, provides reference to configuration with root inside applications tag.double
getEndValue.double
getRateValue.getSetpoint.double
getSetpointValue.double
getStartValue.int
getStepCount.boolean
isAtEnd()
isAtEnd.boolean
isAtStart.boolean
isConfigurable.boolean
isManualScan.boolean
isManualScanActive.protected void
notifyRecordChange
(String name, boolean alarmOnly) This method is called whenever record value changed for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
).protected void
notifyRecordWrite
(String name) This method is called whenever record value has been written for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
).void
setManualScan
(boolean interactive) Setter for the fieldmanualScan
.void
startManualScan.void
startManualScan.boolean
stepManualScan.boolean
stepManualScan
(boolean inc) stepManualScan.boolean
stepManualScanInv.void
stopManualScan.Methods inherited from class org.scictrl.csshell.epics.server.application.AbstractApplication
addRecord, addRecordOfCommandProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfMemoryValueProcessor, addRecordOfOnDemandProcessor, addRecordOfOnLinkValueProcessor, configure, connectLinks, createNewStore, fullRecordName, getLinks, getName, getNameDelimiter, getNotNull, getRecord, getRecordErrorSum, getRecordLinkError, getRecordNames, getRecords, getStore, getStore, getValue, initialize, isActivated, isDynamicRecordCreator, log4debug, log4error, log4error, log4info, notifyLinkChange, processLinkChange, pushDoneCommandProcessor, reconnectLinks, resetOnDemandProcessor, restore, store, toString, updateErrorSum, updateErrorSum, updateLinkError, updateLinkError
-
Field Details
-
STATUS
ConstantSTATUS="Status"
- See Also:
-
SETPOINT
ConstantSETPOINT="Setpoint"
- See Also:
-
REPEAT
ConstantREPEAT="Repeat"
- See Also:
-
COUNT
ConstantCOUNT="Count"
- See Also:
-
-
Constructor Details
-
ScanApplication
public ScanApplication()Constructor for ScanApplication.
-
-
Method Details
-
configure
public void configure(String name, org.apache.commons.configuration.HierarchicalConfiguration config) Configures the internals of this application, provides reference to configuration with root inside applications tag. Server structure is not yet initialized, so does not have reference to Database, the Database reference will be available during activate call.- Specified by:
configure
in interfaceApplication
- Overrides:
configure
in classAbstractApplication
- Parameters:
name
- aString
objectconfig
- configuration with room inside application tag.
-
notifyRecordWrite
This method is called whenever record value has been written for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
). Implementation class should override this method to intercept the update.- Overrides:
notifyRecordWrite
in classAbstractApplication
- Parameters:
name
- the name of record, that triggered change.
-
notifyRecordChange
This method is called whenever record value changed for any record, which belongs to this application (it was added to the applicationAbstractApplication.addRecord(String, Record)
). Implementation class should override this method to intercept the update.- Overrides:
notifyRecordChange
in classAbstractApplication
- Parameters:
name
- the name of record, that triggered change.alarmOnly
- iftrue
then only alarm has been changed
-
activate
public void activate()Application has now reference to Database. Application might want to connect to other records on this server or PVs on other servers. This can not be done until all records from configuration has been loaded. Call to this method signals application that records has been loaded and linking to other values can be commenced.- Specified by:
activate
in interfaceApplication
- Overrides:
activate
in classAbstractApplication
-
isConfigurable
public boolean isConfigurable()isConfigurable.
- Returns:
- a boolean
-
isManualScan
public boolean isManualScan()isManualScan.
- Returns:
- a boolean
-
setManualScan
public void setManualScan(boolean interactive) Setter for the field
manualScan
.- Parameters:
interactive
- a boolean
-
getStartValue
public double getStartValue()getStartValue.
- Returns:
- a double
-
getEndValue
public double getEndValue()getEndValue.
- Returns:
- a double
-
startManualScan
public void startManualScan()startManualScan.
-
startManualScan
startManualScan.
- Parameters:
sp
- aScanApplication.StartPoint
object
-
getStepCount
public int getStepCount()getStepCount.
- Returns:
- a int
-
stopManualScan
public void stopManualScan()stopManualScan.
-
stepManualScan
public boolean stepManualScan()stepManualScan.
- Returns:
- a boolean
-
stepManualScanInv
public boolean stepManualScanInv()stepManualScanInv.
- Returns:
- a boolean
-
stepManualScan
public boolean stepManualScan(boolean inc) stepManualScan.
- Parameters:
inc
- a boolean- Returns:
- a boolean
-
isManualScanActive
public boolean isManualScanActive()isManualScanActive.
- Returns:
- a boolean
-
getSetpoint
getSetpoint.
- Returns:
- a
Record
object
-
getSetpointValue
public double getSetpointValue()getSetpointValue.
- Returns:
- a double
-
getRateValue
public double getRateValue()getRateValue.
- Returns:
- a double
-
isAtEnd
public boolean isAtEnd()isAtEnd.
- Returns:
- a boolean
-
isAtStart
public boolean isAtStart()isAtStart.
- Returns:
- a boolean
-