AnyLogic
Expand
Font size
All Implemented Interfaces:
IVariable
Direct Known Subclasses:
MetalBinaryVariable, MetalContinuousVariable, MetalDiscreteVariable

public abstract class MetalVariable
extends Object
implements IVariable

Constructor Summary

ConstructorDescription
MetalVariable() 

Method Summary

Modifier and TypeMethodDescription
ObjectgetBestValue() 
doublegetBestValueAsDouble() 
abstract ObjectgetCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution) 
doublegetCurrentValueAsDouble(org.uma.jmetal.solution.compositesolution.CompositeSolution solution) 
intgetInternalIndex() 
StringgetName() 
abstract intgetSolutionIndex() 
abstract booleanisValid() 
voidsetBestValue(Object bestValue) 
voidsetInternalIndex(int index) 
voidsetName(String name) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.optimization.IVariable

getParameterType

Constructor Details

MetalVariable

public MetalVariable()

Method Details

setName

public void setName(String name)
Specified by:
setName in interface IVariable

getName

public String getName()
Specified by:
getName in interface IVariable

getCurrentValue

public abstract Object getCurrentValue(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)

getBestValue

public Object getBestValue()

setBestValue

public void setBestValue(Object bestValue)

getBestValueAsDouble

public double getBestValueAsDouble()

getCurrentValueAsDouble

public double getCurrentValueAsDouble(org.uma.jmetal.solution.compositesolution.CompositeSolution solution)

isValid

public abstract boolean isValid()

getSolutionIndex

public abstract int getSolutionIndex()

getInternalIndex

public int getInternalIndex()

setInternalIndex

public void setInternalIndex(int index)