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:
Giancarlo Panichi 2015-03-09 11:16:23 +00:00
parent 7005dbf896
commit 1ac6b4a849
2 changed files with 54 additions and 1 deletions

View File

@ -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

View File

@ -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 + "]";
}
}