Package hec.hecmath.computation
Class LogicTest
java.lang.Object
hec.hecmath.computation.LogicTest
- All Implemented Interfaces:
Constants
,Testable
,Updatable
,UpdatableListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface hec.hecmath.computation.Constants
Constants.LogicTestOperator, Constants.MathOperator, Constants.Notation, Constants.Precedence, Constants.QualityOperator, Constants.QualityTestOperator, Constants.TextOperator, Constants.TextTestOperator, Constants.ValueTestOperator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Map<Constants.LogicTestOperator,
String> protected Constants.LogicTestOperator
protected static Map<String,
Constants.LogicTestOperator> protected boolean
protected boolean
protected Testable[]
protected Set<UpdatableListener>
protected Object
protected Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
protected void
compute()
void
getNames()
static boolean
isLogicTest
(String name) void
static int
precedence
(String name) void
void
registerListener
(UpdatableListener listener) boolean
test()
toString()
void
void
void
unregisterListener
(UpdatableListener listener)
-
Field Details
-
nameByOp
-
opByName
-
state
protected boolean state -
op
-
test
-
stale
protected boolean stale -
updateListeners
-
updateListenersLock
-
updateSources
-
updateSourcesLock
-
-
Constructor Details
-
LogicTest
- Throws:
ComputationException
-
LogicTest
- Throws:
ComputationException
-
-
Method Details
-
getNames
-
isLogicTest
-
arity
- Throws:
ComputationException
-
precedence
- Throws:
ComputationException
-
test
- Specified by:
test
in interfaceTestable
- Throws:
ComputationException
-
registerListener
- Specified by:
registerListener
in interfaceUpdatable
-
unregisterListener
- Specified by:
unregisterListener
in interfaceUpdatable
-
notifyListeners
public void notifyListeners()- Specified by:
notifyListeners
in interfaceUpdatable
-
registerAsListener
- Specified by:
registerAsListener
in interfaceUpdatableListener
-
unregisterAsListener
- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
unregisterAsListener
public void unregisterAsListener()- Specified by:
unregisterAsListener
in interfaceUpdatableListener
-
dataUpdated
- Specified by:
dataUpdated
in interfaceUpdatableListener
-
toString
-
compute
- Throws:
ComputationException
-