org.deduced
Class FixedDeducedProperty<E>

java.lang.Object
  extended by org.deduced.PropertyImplementation<E>
      extended by org.deduced.FixedDeducedProperty<E>
Type Parameters:
E - the type of value stored in the property
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DeducedProperty<E>, Property<E>

public class FixedDeducedProperty<E>
extends PropertyImplementation<E>
implements DeducedProperty<E>

FixedDeducedProperty is used to hold a property that is created with a rule that has no input. Hence the rule will always return the same value.

Author:
Steve McDuff
See Also:
Serialized Form

Field Summary
private  PropertyCollection<?,?> parent
          parent collection that owns the rule
private  PropertyCollection<?,?> rule
          the rule model
private static long serialVersionUID
          serial ID
 
Constructor Summary
FixedDeducedProperty(PropertyCollection<?,?> setParent, PropertyCollection<?,?> lastInstance, E value, PropertyCollection<?,?> setRule)
          FixedDeducedProperty Constructor
 
Method Summary
 void delete()
          (non-Javadoc)
 PropertyCollection<?,?> getParent()
          (non-Javadoc)
 PropertyCollection<?,?> getRule()
          (non-Javadoc)
 
Methods inherited from class org.deduced.PropertyImplementation
arePropertiesEqual, arePropertyValuesEqual, clonePropertyValue, copy, equals, getInstance, getValue, getValueType, hashCode, isValueEqual, resetParentOnValue, 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

serialVersionUID

private static final long serialVersionUID
serial ID

See Also:
Constant Field Values

parent

private PropertyCollection<?,?> parent
parent collection that owns the rule


rule

private PropertyCollection<?,?> rule
the rule model

Constructor Detail

FixedDeducedProperty

public FixedDeducedProperty(PropertyCollection<?,?> setParent,
                            PropertyCollection<?,?> lastInstance,
                            E value,
                            PropertyCollection<?,?> setRule)
FixedDeducedProperty Constructor

Parameters:
setParent - the parent collection
lastInstance - the instance of the rule output
value - the value of the property
setRule - the rule model
Method Detail

getParent

public PropertyCollection<?,?> getParent()
(non-Javadoc)

Specified by:
getParent in interface DeducedProperty<E>
Returns:
the collection that owns the rule
See Also:
DeducedProperty.getParent()

delete

public void delete()
(non-Javadoc)

Specified by:
delete in interface DeducedProperty<E>
See Also:
DeducedProperty.delete()

getRule

public PropertyCollection<?,?> getRule()
(non-Javadoc)

Specified by:
getRule in interface DeducedProperty<E>
Returns:
the deduction rule model
See Also:
DeducedProperty.getRule()