Class VirtualFact
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.VirtualFact
 
- 
 public class VirtualFact extends java.lang.ObjectA virtual fact represents a fact with some specified multislot variable bindings. The values of the virtual fact store the bindings for the sub variables, i.e. [var0] -> {val1, val2, ..}, [var1] -> {val3}, ...
- 
- 
Field SummaryFields Modifier and Type Field Description protected OAVAttributeTypeattrThe attribute.protected java.lang.ObjectobjectThe real fact (object).protected java.util.ListvaluesThe values of the sub attributes.
 - 
Constructor SummaryConstructors Constructor Description VirtualFact(java.lang.Object object, OAVAttributeType attr, java.util.List values)Create a new virtual fact.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description OAVAttributeTypegetAttribute()Get the attribute.java.lang.ObjectgetObject()Get the real fact.java.lang.ObjectgetSubAttributeValue(OAVAttributeType attr, int subindex)Get the value or values of a sub attribute.VirtualFactgetSuperFact()Get the containing fact.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
objectprotected java.lang.Object object The real fact (object).
 - 
attrprotected OAVAttributeType attr The attribute.
 - 
valuesprotected java.util.List values The values of the sub attributes.
 
- 
 - 
Constructor Detail- 
VirtualFactpublic VirtualFact(java.lang.Object object, OAVAttributeType attr, java.util.List values)Create a new virtual fact.
 
- 
 - 
Method Detail- 
getObjectpublic java.lang.Object getObject() Get the real fact.- Returns:
- The real fact.
 
 - 
getAttributepublic OAVAttributeType getAttribute() Get the attribute.- Returns:
- The attribute.
 
 - 
getSuperFactpublic VirtualFact getSuperFact() Get the containing fact.- Returns:
- The containing fact.
 
 - 
getSubAttributeValuepublic java.lang.Object getSubAttributeValue(OAVAttributeType attr, int subindex) Get the value or values of a sub attribute. The subindex specifies the variable which should be accessed. Each virtual fact has bindings for every subvariable, i.e. the values contain for each variable its current values.- Parameters:
- attr- The attribute.
- subindex- The subindex.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-