Class Checks<A>
java.lang.Object
org.scictrl.csshell.epics.server.processor.Checks<A>
- Type Parameters:
A
- use eitherChecks.Check
orChecks.LinkCheck
, any other class will cause errors
Checks class.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Simple configurable check, that test value against some criteria.static enum
Check condition enumeration.static final class
Utilizes checks with link, obtains remote value and does condition test. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate.void
add.boolean
check
(double value) check.boolean
check
(gov.aps.jca.dbr.Status st) check.static final Checks
<Checks.Check> checks.gov.aps.jca.dbr.Status
Getter for the fieldlastStatus
.static final Checks
<Checks.LinkCheck> linkChecks
(org.apache.commons.configuration.HierarchicalConfiguration config, String tag, PropertyChangeListener listener) linkChecks.
-
Method Details
-
checks
public static final Checks<Checks.Check> checks(org.apache.commons.configuration.HierarchicalConfiguration config, String tag) checks.
-
linkChecks
public static final Checks<Checks.LinkCheck> linkChecks(org.apache.commons.configuration.HierarchicalConfiguration config, String tag, PropertyChangeListener listener) linkChecks.
- Parameters:
config
- aHierarchicalConfiguration
objecttag
- aString
objectlistener
- aPropertyChangeListener
object- Returns:
- a
Checks
object
-
add
add.
- Parameters:
ch
- a A object
-
getLastStatus
public gov.aps.jca.dbr.Status getLastStatus()Getter for the field
lastStatus
.- Returns:
- a
Status
object
-
check
public boolean check(gov.aps.jca.dbr.Status st) check.
- Parameters:
st
- aStatus
object- Returns:
- a boolean
-
check
public boolean check(double value) check.
- Parameters:
value
- a double- Returns:
- a boolean
-
activate
activate.
- Parameters:
database
- aDatabase
object
-