|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deduced.PropertyImplementation<E> org.deduced.dynamic.AbstractDeducedProperty<E>
E
- the type of value held within the propertypublic abstract class AbstractDeducedProperty<E>
AbstractDeducedProperty stores the common code of deduced properties to keep the use counter
Field Summary | |
---|---|
private ContextualPropertyCollection<?,?> |
parent
parent collection that owns the rule |
private PropertyCollection |
rule
the rule model |
private static long |
serialVersionUID
serialVersionUID |
private int |
useCounter
number of times the rule is being used. |
Constructor Summary | |
---|---|
AbstractDeducedProperty(ContextualPropertyCollection<?,?> setParent,
PropertyCollection<?,?> instance,
E value,
PropertyCollection<?,?> setRule)
AbstractDeducedProperty constructor |
Method Summary | |
---|---|
int |
decrementUseCounter()
(non-JSDoc) |
void |
delete()
(non-Javadoc) |
protected abstract void |
executeRule()
execute the Rule |
protected void |
executeRuleAnalyzer(DeductionRuleAnalyzer<E> analyzer,
java.lang.Object[] inputs)
execute the Rule Analyzer and store the value based on the specified inputs. |
ContextualPropertyCollection<?,?> |
getParent()
(non-Javadoc) |
PropertyCollection<?,?> |
getRule()
(non-Javadoc) |
int |
getUseCounter()
get Use Counter current value |
int |
incrementUseCounter()
(non-JSDoc) |
void |
logRuleExecutionException(java.lang.Throwable e)
log Rule Execution Exception |
Methods inherited from class org.deduced.PropertyImplementation |
---|
arePropertiesEqual, arePropertyValuesEqual, clonePropertyValue, copy, equals, getInstance, getValue, getValueType, hashCode, isValueEqual, resetParentOnValue, setInstance, setValue, setValueOnProperty, setValueParent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deduced.Property |
---|
copy, getInstance, getValue, getValueType, isValueEqual, setValue |
Field Detail |
---|
private static final long serialVersionUID
private ContextualPropertyCollection<?,?> parent
private PropertyCollection rule
private int useCounter
Constructor Detail |
---|
public AbstractDeducedProperty(ContextualPropertyCollection<?,?> setParent, PropertyCollection<?,?> instance, E value, PropertyCollection<?,?> setRule)
setParent
- property parentinstance
- property instancevalue
- initial valuesetRule
- ruleMethod Detail |
---|
protected abstract void executeRule()
public int incrementUseCounter()
incrementUseCounter
in interface DeducedProperty<E>
DeducedProperty.incrementUseCounter()
public int decrementUseCounter()
decrementUseCounter
in interface DeducedProperty<E>
DeducedProperty.decrementUseCounter()
public int getUseCounter()
public void logRuleExecutionException(java.lang.Throwable e)
e
- the unexpected exceptionprotected void executeRuleAnalyzer(DeductionRuleAnalyzer<E> analyzer, java.lang.Object[] inputs)
analyzer
- the rule analyzerinputs
- the rule inputspublic ContextualPropertyCollection<?,?> getParent()
getParent
in interface DeducedProperty<E>
DeducedProperty.getParent()
public void delete()
delete
in interface DeducedProperty<E>
DeducedProperty.delete()
public PropertyCollection<?,?> getRule()
getRule
in interface DeducedProperty<E>
DeducedProperty.getRule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |