Jalog 1.4


io.github.JalogTeam.jalog
Class Pro_TermData_Real

java.lang.Object
  extended by io.github.JalogTeam.jalog.Pro_TermData
    extended by io.github.JalogTeam.jalog.Pro_TermData_Real

public class Pro_TermData_Real

Real constants are represented as Pro_TermData_Real objects.


Field Summary
String typename
           Type of the term.
double value
           The real value of this object
 
Constructor Summary
Pro_TermData_Real(double iniVal)
           Constructs a Pro_TermData_Real object.
 
Method Summary
Pro_TermData copy(Hashtable variable_map)
           Returns this object. (Inherited from parent.)
String image()
           Returns human readable string representation of this term. (Same as toString. Inherited from parent.)
String toString()
           Returns a String containing a Prolog constant expression representing value.
 

Field Detail

typename

public String typename
The type of this term. This is set in the constructor to Jalog.REAL. Do not change!

value

public double value
The data content of this term. This is set in the constructor. Usually not changed.
Constructor Detail

Pro_TermData_Real

public Pro_TermData_Real(double iniVal)
Constructs a Pro_TermData_Real object representing the real iniVal.

Parameters:
iniVal - the real value.
Method Detail

toString

public String toString()
Returns Jalog syntax representation of this term.

Returns:
Jalog syntax representation of this term.

Authors: Mikko Levanto, Ari Okkonen