Package com.artelys.kalis
Class KNumVar
- java.lang.Object
-
- com.artelys.kalis.KNumVar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKNumVar.TypeVariable types
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KNumVar()Default constructorprotectedKNumVar(long cPtr, boolean cMemoryOwn)KNumVar(KNumVar toCopy)Copy constructorKNumVar(KProblem problem)main constructorKNumVar(KProblem problem, com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)Constructor with KProblem and KNumVar_IKNumVar(com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)Constructor with KNumVar_I
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int_instanceof()Return the type of this variable
booleancanBeInstantiatedTo(double value)Return true if this variable can be instantiated to 'value'voiddelete()protected voidfinalize()KNumVargetCopyPtr()Return a copy of this objectprotected static longgetCPtr(KNumVar obj)intgetDegree()returns the number of constraints where this variable appearsintgetIndex()Return the index of the variabledoublegetInf()returns lower bound of this variablecom.artelys.kalis.SWIGTYPE_p_KNumVar_IgetInternalObject()booleangetIsInstantiated()returns true if the variable has been assigned a value, false otherwhiseKProblemgetKProblem()java.lang.StringgetName()com.artelys.kalis.SWIGTYPE_p_KNumVar_IgetNumVar_I_ptr()KProblemgetProblem()returns the KProblem associated with this variabledoublegetSup()returns upper bound of this variabledoublegetTarget()get target valuedoublegetValue()returns current instantiation of the variable (when the variable is not instantiated the returned value is undefined)voidinstantiate(double value)Instantiate the variable to valuebooleanisHidden()Return true iff this variable is hiddenvoidprint()voidprint(com.artelys.kalis.SWIGTYPE_p_std__ostream fout)Pretty printingvoidprint(com.artelys.kalis.SWIGTYPE_p_void ctx, com.artelys.kalis.SWIGTYPE_p_f_p_void_p_q_const__char__int pfp)Pretty printingvoidprintConstraints()Pretty print its constraintsvoidprintConstraints(com.artelys.kalis.SWIGTYPE_p_void ctx, com.artelys.kalis.SWIGTYPE_p_f_p_void_p_q_const__char__int pfp)voidsetHidden(boolean hidden)Hidden variable Y/NvoidsetInf(double value)set the lower bound to valuevoidsetName(java.lang.String name)Set the name of the variablevoidsetNumVar_I_ptr(com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)voidsetSup(double value)set the upper bound to valuevoidsetTarget(double value)set the target valuevoiduseShaving(boolean use)activate shaving Y/N
-
-
-
Constructor Detail
-
KNumVar
protected KNumVar(long cPtr, boolean cMemoryOwn)
-
KNumVar
public KNumVar()
Default constructor
-
KNumVar
public KNumVar(KProblem problem)
main constructor
-
KNumVar
public KNumVar(KProblem problem, com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)
Constructor with KProblem and KNumVar_I
-
KNumVar
public KNumVar(com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)
Constructor with KNumVar_I
-
KNumVar
public KNumVar(KNumVar toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KNumVar obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
instantiate
public void instantiate(double value)
Instantiate the variable to value
-
getProblem
public KProblem getProblem()
returns the KProblem associated with this variable
-
getKProblem
public KProblem getKProblem()
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
Set the name of the variable
-
getInf
public double getInf()
returns lower bound of this variable
-
getSup
public double getSup()
returns upper bound of this variable
-
getValue
public double getValue()
returns current instantiation of the variable (when the variable is not instantiated the returned value is undefined)
-
getIsInstantiated
public boolean getIsInstantiated()
returns true if the variable has been assigned a value, false otherwhise
-
getDegree
public int getDegree()
returns the number of constraints where this variable appears
-
getTarget
public double getTarget()
get target value
-
setInf
public void setInf(double value)
set the lower bound to value
-
setSup
public void setSup(double value)
set the upper bound to value
-
setTarget
public void setTarget(double value)
set the target value
-
canBeInstantiatedTo
public boolean canBeInstantiatedTo(double value)
Return true if this variable can be instantiated to 'value'
-
useShaving
public void useShaving(boolean use)
activate shaving Y/N
-
setHidden
public void setHidden(boolean hidden)
Hidden variable Y/N
-
isHidden
public boolean isHidden()
Return true iff this variable is hidden
-
getNumVar_I_ptr
public com.artelys.kalis.SWIGTYPE_p_KNumVar_I getNumVar_I_ptr()
-
getInternalObject
public com.artelys.kalis.SWIGTYPE_p_KNumVar_I getInternalObject()
-
setNumVar_I_ptr
public void setNumVar_I_ptr(com.artelys.kalis.SWIGTYPE_p_KNumVar_I numVar)
-
getCopyPtr
public KNumVar getCopyPtr()
Return a copy of this object
-
print
public void print(com.artelys.kalis.SWIGTYPE_p_std__ostream fout)
Pretty printing
-
print
public void print()
-
print
public void print(com.artelys.kalis.SWIGTYPE_p_void ctx, com.artelys.kalis.SWIGTYPE_p_f_p_void_p_q_const__char__int pfp)Pretty printing
-
printConstraints
public void printConstraints()
Pretty print its constraints
-
printConstraints
public void printConstraints(com.artelys.kalis.SWIGTYPE_p_void ctx, com.artelys.kalis.SWIGTYPE_p_f_p_void_p_q_const__char__int pfp)
-
_instanceof
public int _instanceof()
Return the type of this variable
-
getIndex
public int getIndex()
Return the index of the variable
-
-