Class Add

java.lang.Object
  extended by se.gu.ling.trindikit.oaa.common.OAASolver
      extended by Add

public class Add
extends se.gu.ling.trindikit.oaa.common.OAASolver

This class is used to events to the database.


Constructor Summary
Add()
           
 
Method Summary
 boolean solve(com.sri.oaa2.icl.IclTerm goal, com.sri.oaa2.icl.IclList params, com.sri.oaa2.icl.IclList answers)
          The solve method extended from OAA.
goal == entry(Type,Summary,StartDatime,StopDatime,Location)
Type == the type of event; meeting, birthday, appointment...
 
Methods inherited from class se.gu.ling.trindikit.oaa.common.OAASolver
getSolvable, getSolvableString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Add

public Add()
Method Detail

solve

public boolean solve(com.sri.oaa2.icl.IclTerm goal,
                     com.sri.oaa2.icl.IclList params,
                     com.sri.oaa2.icl.IclList answers)
The solve method extended from OAA.
goal == entry(Type,Summary,StartDatime,StopDatime,Location)
Type == the type of event; meeting, birthday, appointment...
Summary == the message connected to the object
StartDatime == start datime/6; datime(yyyy,mm,dd,hh,mm,ss)
StopDatim == stop datime/6; datime(yyyy,mm,dd,hh,mm,ss)
Locatio == location of the event

Summary and Location could be empty strings. The other ones are crucial for the functionality.

Specified by:
solve in class se.gu.ling.trindikit.oaa.common.OAASolver
Parameters:
goal - an IclTerm
params - an IclList
answers - an IclList
Returns:
true if the method succeeds, otherwise false