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
-
_relConst
-
-
_termSeq
-
-
KifRelSent(String)
- Create an instance of KifRelSent with given relatioal constant
(no arguments).
-
KifRelSent(String, KifSeq)
- Create an instance of KifRelSent with given relatioal constant
(predicate name) and a sequence of terms(arguments).
-
relConst()
- Get the relational constant (predicate name).
-
termSeq()
- Get the term(arguments) sequence/list of this predicate.
-
toString()
- Convert this sentence into String format.
_relConst
private String _relConst
_termSeq
private KifSeq _termSeq
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).
KifRelSent
public KifRelSent(String relConst)
- Create an instance of KifRelSent with given relatioal constant
(no arguments).
- Parameters:
- relConst - relational constant(predicate name)
relConst
public String relConst()
- Get the relational constant (predicate name).
- Returns:
- the relational constant (predicate name).
termSeq
public KifSeq termSeq()
- Get the term(arguments) sequence/list of this predicate.
- Returns:
- the term(arguments) sequence/list of this predicate.
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