|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opencyc.templateparser.Template
Contains a template for parsing a particular utterance, phrase or sentence into an performative and arguments.
The user creates a template by telling the following:
In the context of "everything" the statement "what is the capitol of ?country" means (query (#$capitolCityOfCountry ?city ?country)).
Copyright 2001 Cycorp, Inc., license is open source GNU LGPL.
THIS SOFTWARE AND KNOWLEDGE BASE CONTENT ARE PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENCYC ORGANIZATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND KNOWLEDGE BASE CONTENT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Field Summary | |
protected CycFort |
mt
The microtheory in which this template applies, or null if the execution of the performative does not require Cyc. |
protected Performative |
performative
the performative associated with this template |
protected CycList |
templateElements
the elements of this template |
Constructor Summary | |
protected |
Template(CycFort mt,
CycList templateElements,
Performative performative)
Constructs a new Template object given the template elements and performative. |
Method Summary | |
int |
compareTo(java.lang.Object object)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object object)
Returns true iff some object equals this object |
CycFort |
getMt()
Returns the microtheory |
Performative |
getPerformative()
Returns the performative. |
CycList |
getTemplateElements()
Returns the template elements |
java.lang.String |
toString()
Returns the string representation of the Template |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected CycFort mt
protected CycList templateElements
protected Performative performative
Constructor Detail |
protected Template(CycFort mt, CycList templateElements, Performative performative)
mt
- the microtheory in which this template applies, or
null if the execution of the performative does not require CyctemplateElements
- the template elementsperformative
- the performativeMethod Detail |
public CycFort getMt()
public CycList getTemplateElements()
public Performative getPerformative()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- the reference object with which to compare.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the Object for equality comparisonpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |