| java.lang.Object org.drools.facttemplates.FactImpl
FactImpl | public class FactImpl implements Fact,Serializable(Code) | | author: Peter Lin author: Deffact is a concrete implementation of Fact interface. It is author: equivalent to deffact in CLIPS. |
FactImpl | public FactImpl(FactTemplate template, Object[] values, long id)(Code) | | this is the default constructor
Parameters: instance - Parameters: values - |
getFactId | public long getFactId()(Code) | | Return the long factId
|
getFactTemplate | public FactTemplate getFactTemplate()(Code) | | Return the deftemplate for the fact
|
getFieldValue | public Object getFieldValue(int index)(Code) | | Method returns the value of the given slot at the
id.
Parameters: id - |
hashCode | public int hashCode()(Code) | | |
resetId | protected void resetId(Fact fact)(Code) | | this is used to reset the id, in the event an user tries to
assert the same fact again, we reset the id to the existing one.
Parameters: fact - |
setFieldValue | public void setFieldValue(int index, Object value)(Code) | | |
|
|