All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jkp.KifRelSent

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

public class KifRelSent
extends KifSent
The class for KIF relational sentence, something like 'predicate'

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

Author:
Xiaocheng Luan

Variable Index

 o _relConst
 o _termSeq

Constructor Index

 o KifRelSent(String)
Create an instance of KifRelSent with given relatioal constant (no arguments).
 o KifRelSent(String, KifSeq)
Create an instance of KifRelSent with given relatioal constant (predicate name) and a sequence of terms(arguments).

Method Index

 o relConst()
Get the relational constant (predicate name).
 o termSeq()
Get the term(arguments) sequence/list of this predicate.
 o toString()
Convert this sentence into String format.

Variables

 o _relConst
 private String _relConst
 o _termSeq
 private KifSeq _termSeq

Constructors

 o KifRelSent
 public KifRelSent(String relConst,
                   KifSeq termSeq)
Create an instance of KifRelSent with given relatioal constant (predicate name) and a sequence of terms(arguments).

Parameters:
relConst - relational constant(predicate name)
termSeq - the sequence of terms(arguments).
 o KifRelSent
 public KifRelSent(String relConst)
Create an instance of KifRelSent with given relatioal constant (no arguments).

Parameters:
relConst - relational constant(predicate name)

Methods

 o relConst
 public String relConst()
Get the relational constant (predicate name).

Returns:
the relational constant (predicate name).
 o termSeq
 public KifSeq termSeq()
Get the term(arguments) sequence/list of this predicate.

Returns:
the term(arguments) sequence/list of this predicate.
 o toString
 public String toString()
Convert this sentence into String format.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index