Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@113517 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7005dbf896
commit
1ac6b4a849
|
@ -2,7 +2,7 @@ package org.gcube.portlets.user.td.expressionwidget.shared.model;
|
|||
|
||||
public enum C_OperatorType {
|
||||
// Arithmetic
|
||||
ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION, MODULUS,
|
||||
ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION, MODULUS, EXPONENTIATION,
|
||||
|
||||
// COMPARISON
|
||||
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
package org.gcube.portlets.user.td.expressionwidget.shared.model.composite.arithmetic;
|
||||
|
||||
import org.gcube.portlets.user.td.expressionwidget.shared.model.C_OperatorType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author giancarlo email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class C_Exponentiation extends C_ArithmeticExpression {
|
||||
|
||||
private static final long serialVersionUID = -8124478792466278925L;
|
||||
private String id = "Exponentiation";
|
||||
|
||||
|
||||
|
||||
public C_Exponentiation() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param argument
|
||||
*/
|
||||
public C_Exponentiation(C_Expression leftArgument, C_Expression rightArgument) {
|
||||
this.leftArgument = leftArgument;
|
||||
this.rightArgument = rightArgument;
|
||||
|
||||
}
|
||||
|
||||
public C_OperatorType getOperator() {
|
||||
return C_OperatorType.EXPONENTIATION;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Exponentiation [id=" + id + ", leftArgument="
|
||||
+ leftArgument + ", rightArgument=" + rightArgument + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue