Class JavaTupleExtractor
- java.lang.Object
-
- jadex.rules.rulesystem.rete.extractors.TupleExtractor
-
- jadex.rules.rulesystem.rete.extractors.JavaTupleExtractor
-
- All Implemented Interfaces:
IValueExtractor
public class JavaTupleExtractor extends TupleExtractor
Extractor for fetching a Java value from a rete tuple.
-
-
Field Summary
-
Fields inherited from class jadex.rules.rulesystem.rete.extractors.TupleExtractor
attr, key, tupleindex
-
-
Constructor Summary
Constructors Constructor Description JavaTupleExtractor(int tupleindex, OAVJavaAttributeType attr)
Create a new extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)
Get the value of an attribute from an object or tuple.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.rules.rulesystem.rete.extractors.TupleExtractor
equals, getAttribute, getIndirectAttributes, getRelevantAttributes, getTupleIndex, hashCode, isAffected
-
-
-
-
Constructor Detail
-
JavaTupleExtractor
public JavaTupleExtractor(int tupleindex, OAVJavaAttributeType attr)
Create a new extractor.
-
-
Method Detail
-
getValue
public java.lang.Object getValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)
Get the value of an attribute from an object or tuple.- Specified by:
getValue
in interfaceIValueExtractor
- Overrides:
getValue
in classTupleExtractor
- Parameters:
left
- The left input tuple.right
- The right input object.prefix
- The prefix input object (last value from previous extractor in a chain).state
- The working memory.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classTupleExtractor
- Returns:
- The string representation.
-
-