All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jkp.KifImplication

java.lang.Object
   |
   +----jkp.KifObj
           |
           +----jkp.KifForm
                   |
                   +----jkp.KifSent
                           |
                           +----jkp.KifLogSent
                                   |
                                   +----jkp.KifImplication

public class KifImplication
extends KifLogSent
The class for KifImplication, a type of KIF logical sentence.

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

Author:
Xiaocheng Luan

Constructor Index

 o KifImplication(KifSent)
Create a KifImplication object with given antecedent and consequence.
 o KifImplication(KifSent, KifSeq)
Create a KifImplication object with given antecedent and consequence.

Method Index

 o antecedenceSeq()
Get the sequence of antecedent sentences.
 o consequenceSent()
Get the consequence sentence.
 o toString()
Convert this KIF sentence into String format.

Constructors

 o KifImplication
 public KifImplication(KifSent conSent,
                       KifSeq anteSeq)
Create a KifImplication object with given antecedent and consequence.

Parameters:
conSent - the consequence sentence.
anteSeq - the sequence of antecedent sentences.
 o KifImplication
 public KifImplication(KifSent conSent)
Create a KifImplication object with given antecedent and consequence. of the forms (=> sentence) or (<= sentence). The KIF specification for this logical implication is ambigious, Thus this constructor may be changed or even dropped later.

Parameters:
conSent - the consequence sentence.

Methods

 o antecedenceSeq
 public KifSeq antecedenceSeq()
Get the sequence of antecedent sentences.

Returns:
the sequence of antecedent sentences.
 o consequenceSent
 public KifSent consequenceSent()
Get the consequence sentence.

Returns:
the consequence sentence.
 o toString
 public String toString()
Convert this KIF sentence into String format.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index