org.openl.types.science
Class ScalarExpression

java.lang.Object
  extended by org.openl.types.science.AMultiplicativeExpression
      extended by org.openl.types.science.ScalarExpression
All Implemented Interfaces:
IMultiplicativeExpression

public class ScalarExpression
extends AMultiplicativeExpression

Author:
snshor

Constructor Summary
ScalarExpression(double scalar)
           
 
Method Summary
 IMultiplicativeExpression changeScalar(double newScalar)
           
 int getDimensionCount()
          Returns number of different dimensions it has
 IDimensionPower getDimensionPower(IDimension id)
           
 Iterator getDimensionsPowers()
           
 double getScalar()
          Return scalar part of the expression
 
Methods inherited from class org.openl.types.science.AMultiplicativeExpression
add, divide, isAdditiveCompatible, multiply, negate, print, printAs, printAs, printInSystem, subtract, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScalarExpression

public ScalarExpression(double scalar)
Method Detail

changeScalar

public IMultiplicativeExpression changeScalar(double newScalar)

getDimensionCount

public int getDimensionCount()
Description copied from interface: IMultiplicativeExpression
Returns number of different dimensions it has

Returns:

getDimensionPower

public IDimensionPower getDimensionPower(IDimension id)

getDimensionsPowers

public Iterator getDimensionsPowers()

getScalar

public double getScalar()
Description copied from interface: IMultiplicativeExpression
Return scalar part of the expression

Returns:


Copyright © 2012. All Rights Reserved.