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

Variable Index

 o _termString
For indvar, string and objconst, it is the corresponding string.

Constructor Index

 o KifTerm()
Create an empty KifTerm object.
 o KifTerm(String)
Create an instance of KifTerm with given KIF term in string format.

Method Index

 o floatValue()
Get the float value of this term.
 o intValue()
Get the integer value of this term.
 o termString()
Get the _termString field.
 o toString()
Convert this KIF term into String format.

Variables

 o _termString
 protected String _termString
For indvar, string and objconst, it is the corresponding string. for functerm, it is the funconst.

Constructors

 o KifTerm
 public KifTerm(String termString)
Create an instance of KifTerm with given KIF term in string format.

Parameters:
termString - KIF term in string format.
 o KifTerm
 public KifTerm()
Create an empty KifTerm object.

Methods

 o 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.
 o intValue
 public int intValue()
Get the integer value of this term. valid for KifInt & KifReal.

Returns:
the integer value of term KifInt/ KifReal
 o floatValue
 public float floatValue()
Get the float value of this term. valid for KifInt & KifReal.

Returns:
the real value of term KifInt/ KifReal
 o 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