All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jkp.KifLogConst

java.lang.Object
   |
   +----jkp.KifObj
           |
           +----jkp.KifForm
                   |
                   +----jkp.KifSent
                           |
                           +----jkp.KifLogConst

public class KifLogConst
extends KifSent
The class for KIF logical constant: true/false.

Copyright (c) 1996, Xiaocheng Luan. All rights reserved.

Author:
Xiaocheng Luan

Variable Index

 o _boolValue

Constructor Index

 o KifLogConst(boolean)
Create a instance of KifLogConst from its logical value.
 o KifLogConst(String)
Create a instance of KifLogConst from its string representation.

Method Index

 o boolValue()
Get the logical value of this logical constant.
 o toString()
Convert this KIF sentence/logical constant into String format.

Variables

 o _boolValue
 private boolean _boolValue

Constructors

 o KifLogConst
 public KifLogConst(String bconst) throws KifRTException
Create a instance of KifLogConst from its string representation.

Parameters:
bconst - logical constant (true/false) in string format.
 o KifLogConst
 public KifLogConst(boolean value)
Create a instance of KifLogConst from its logical value.

Parameters:
value - logical value(in java) of the logical constant.

Methods

 o boolValue
 public boolean boolValue()
Get the logical value of this logical constant.

Returns:
the logical value of this logical constant.
 o toString
 public String toString()
Convert this KIF sentence/logical constant into String format.

Returns:
this KIF sentence/logical constant in String format.
Overrides:
toString in class KifObj

All Packages  Class Hierarchy  This Package  Previous  Next  Index