Class Adder3
java.lang.Object
se.gu.ling.trindikit.oaa.common.OAASolver
Adder3
public class Adder3
- extends se.gu.ling.trindikit.oaa.common.OAASolver
This class is used to add objects to the databas.
The add method takes three 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. Events can therefore NOT be
added in this class.
The add solvable should look like this: add(Choice,String,StartDate)
String should be the text information in
the new entry
Choice is what kind of information it is.
That is todo, alarm...
Date is...date in the format "20040824T113000"
Events are NOT handled here.
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 == find(W,X,Y)
W == the type; todo,alarm
X == the message connected to the object
Y == start 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 |
Adder3
public Adder3()
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 == find(W,X,Y)
W == the type; todo,alarm
X == the message connected to the object
Y == start date/time
- Specified by:
solve
in class se.gu.ling.trindikit.oaa.common.OAASolver
- Parameters:
goal
- an IclTermparams
- an IclListanswers
- an IclList
- Returns:
- true if the method succeeds, otherwise false