All Packages Class Hierarchy This Package Previous Next Index
Class jkp.KifTerm
java.lang.Object
|
+----jkp.KifObj
|
+----jkp.KifTerm
- public abstract class KifTerm
- extends KifObj
The abstract base class for KIF terms
Copyright (c) 1996, Xiaocheng Luan.
All rights reserved.
- Author:
- Xiaocheng Luan
-
_termString
- For indvar, string and objconst, it is the corresponding string.
-
KifTerm()
- Create an empty KifTerm object.
-
KifTerm(String)
- Create an instance of KifTerm with given KIF term in string format.
-
floatValue()
- Get the float value of this term.
-
intValue()
- Get the integer value of this term.
-
termString()
- Get the _termString field.
-
toString()
- Convert this KIF term into String format.
_termString
protected String _termString
- For indvar, string and objconst, it is the corresponding string.
for functerm, it is the funconst.
KifTerm
public KifTerm(String termString)
- Create an instance of KifTerm with given KIF term in string format.
- Parameters:
- termString - KIF term in string format.
KifTerm
public KifTerm()
- Create an empty KifTerm object.
termString
public String termString()
- Get the _termString field. Not supposed to be used by developer.
- Returns:
- For indvar, string and objconst, it is the corresponding string.
for functerm, it is the funconst.
intValue
public int intValue()
- Get the integer value of this term. valid for KifInt & KifReal.
- Returns:
- the integer value of term KifInt/ KifReal
floatValue
public float floatValue()
- Get the float value of this term. valid for KifInt & KifReal.
- Returns:
- the real value of term KifInt/ KifReal
toString
public String toString()
- Convert this KIF term into String format.
- Returns:
- this KIF term in String format.
- Overrides:
- toString in class KifObj
All Packages Class Hierarchy This Package Previous Next Index