Class OperatorFunction
- java.lang.Object
-
- jadex.rules.rulesystem.rules.functions.OperatorFunction
-
-
Constructor Summary
Constructors Constructor Description OperatorFunction(IOperator operator)Create create new function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test for equality.IOperatorgetOperator()Get the operator.AttributeSetgetRelevantAttributes()Get the set of relevant attribute types.java.lang.ClassgetReturnType()Get the return type of this function.inthashCode()Get the hash code.java.lang.Objectinvoke(java.lang.Object[] paramvalues, IOAVState state)Invoke a function and return a value (optional).java.lang.StringtoString()Get the string representation.
-
-
-
Field Detail
-
operator
protected IOperator operator
The operator.
-
-
Constructor Detail
-
OperatorFunction
public OperatorFunction(IOperator operator)
Create create new function.
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object[] paramvalues, IOAVState state)Invoke a function and return a value (optional).
-
getReturnType
public java.lang.Class getReturnType()
Get the return type of this function.- Specified by:
getReturnTypein interfaceIFunction
-
getRelevantAttributes
public AttributeSet getRelevantAttributes()
Get the set of relevant attribute types.- Specified by:
getRelevantAttributesin interfaceIFunction- Returns:
- The relevant attribute types.
-
getOperator
public IOperator getOperator()
Get the operator.- Returns:
- The operator.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The object.- Returns:
- True if operator.
-
hashCode
public int hashCode()
Get the hash code.- Overrides:
hashCodein classjava.lang.Object
-
-