org.jscience.chemistry.vapor.calculators
Class MarguleActivityCalculator

java.lang.Object
  extended by org.jscience.chemistry.vapor.calculators.MarguleActivityCalculator
All Implemented Interfaces:
IActivityCalculator

public class MarguleActivityCalculator
extends java.lang.Object
implements IActivityCalculator

Margule's equation implementation for activity calculation.


Constructor Summary
MarguleActivityCalculator()
           
 
Method Summary
 double[] calculateActivity(java.lang.Object[] params)
          DOCUMENT ME!
 java.util.ArrayList getParamList(int numOfComps)
          DOCUMENT ME!
 boolean isNonBinarySystemAllowed()
          DOCUMENT ME!
 void setContext(VLEContext context)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarguleActivityCalculator

public MarguleActivityCalculator()
Method Detail

setContext

public void setContext(VLEContext context)
DOCUMENT ME!

Specified by:
setContext in interface IActivityCalculator
Parameters:
context - DOCUMENT ME!

calculateActivity

public double[] calculateActivity(java.lang.Object[] params)
DOCUMENT ME!

Specified by:
calculateActivity in interface IActivityCalculator
Parameters:
params - DOCUMENT ME!
Returns:
DOCUMENT ME!

getParamList

public java.util.ArrayList getParamList(int numOfComps)
DOCUMENT ME!

Specified by:
getParamList in interface IActivityCalculator
Parameters:
numOfComps - DOCUMENT ME!
Returns:
DOCUMENT ME!

isNonBinarySystemAllowed

public boolean isNonBinarySystemAllowed()
DOCUMENT ME!

Specified by:
isNonBinarySystemAllowed in interface IActivityCalculator
Returns:
DOCUMENT ME!