Class Adder4

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

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

This class is used to add objects to the databas. The add method takes four arguments, hence the name. The events MUST have four arguments, since they take both start date and end date. The other ones do not have to take an end date.

The add solvable should look like this: add(Choice,String,StartDate,EndDate) String should be the text information in the new event Choice is what kind of information it is. That is todo, alarm... Date is...date in the format "20040824T113000"


Constructor Summary
Adder4()
           
 
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 == add(W,X,Y,Z)
W == the type; event,todo,alarm
X == the message connected to the object
Y == start date/time
Z == end date/time
 
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

Adder4

public Adder4()
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 == add(W,X,Y,Z)
W == the type; event,todo,alarm
X == the message connected to the object
Y == start date/time
Z == end date/time

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