public class Double extends BaseContainer
Constructor and Description |
---|
Double()
Default constructor
|
Double(Double input)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
static Double |
fromPointer(long cptr)
Creates a java object instance from a C/C++ pointer
|
static Double |
fromPointer(long cptr,
boolean shouldManage)
Creates a java object instance from a C/C++ pointer
|
double |
get()
Gets the value
|
java.lang.String |
getName()
Gets the name of the variable
|
boolean |
isFalse()
Returns true if the container evaluates to false
|
boolean |
isTrue()
Returns true if the container evaluates to true
|
void |
modify()
Mark the value as modified.
|
void |
set(double value)
Sets the value
|
void |
setName(KnowledgeBase kb,
java.lang.String name)
Sets the name and knowledge base being referred to
|
void |
setName(Variables vars,
java.lang.String name)
Sets the name and knowledge base being referred to
|
void |
setSettings(UpdateSettings settings)
Sets the settings for updating variables in the Knowledge Base
|
double |
toDouble()
Converts the value to a double
|
long |
toLong()
Converts the value to a long
|
java.lang.String |
toString()
Converts the value to a string
|
modifyIfFalse, modifyIfTrue
public Double()
public Double(Double input)
input
- instance to copypublic static Double fromPointer(long cptr)
cptr
- C pointer to the objectpublic static Double fromPointer(long cptr, boolean shouldManage)
cptr
- C pointer to the objectshouldManage
- if true, manage the pointerpublic double get()
public java.lang.String getName()
public void set(double value)
value
- new valuepublic void setName(KnowledgeBase kb, java.lang.String name)
kb
- the knowledge base that contains the namename
- the variable namepublic void setName(Variables vars, java.lang.String name)
vars
- the variables facade that contains the namename
- the variable namepublic void setSettings(UpdateSettings settings)
settings
- the settings to use for updating the Knowledge Basepublic void modify()
public boolean isTrue()
public boolean isFalse()
public double toDouble()
public long toLong()
public java.lang.String toString()
public void free()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- necessary for override but unused