public class Operation
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
Operation(java.lang.String opName,
java.lang.Class<?>[] paramTypes,
java.lang.String returnType)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Override the "equals" method
|
double |
getOpCost()
Return the operation cost
|
java.lang.String |
getOpName()
Return the operation name
|
java.lang.Class<?>[] |
getParamTypes()
Return the type array of parameters
|
java.lang.String |
getReturnType()
Return the return type of the operation
|
void |
setOpCost(double opCost)
Set the operation cost
|
java.lang.String |
toString()
Override the "toString" method
|
public Operation(java.lang.String opName,
java.lang.Class<?>[] paramTypes,
java.lang.String returnType)
opName - the operation nameparamTypes - the type array of parametersreturnType - the return typepublic java.lang.String getOpName()
public java.lang.Class<?>[] getParamTypes()
public java.lang.String getReturnType()
public double getOpCost()
public void setOpCost(double opCost)
opCost - the new operation costpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object