|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AbstractpPlanner
A presentation-planner is a object implementing this interface. Such an object has been created with a precise scenario and set of goals and should not be accessible before its content is ready to be displayed.
In (or under) a presentation-planner is expected to happen all the presentation mechanisms including grabbing, gathering, rule applications, linearizing and beautifying.
This interface is meant for a "client-like" usage, eg the session-manager serving and filtering machine.
| Field Summary | |
|---|---|
static org.jdom.DocType |
doctype
|
static org.jdom.Namespace |
pagesNS
|
| Method Summary | |
|---|---|
Exception |
getException()
Returns an exception that possibly happened during the process. |
org.jdom.Document |
getNextBest()
Returns the NextBest document to be displayed by the session-manager to NextBest queries. |
int |
getNumPages()
Returns the number of pages that the static book has. |
org.jdom.Element |
getPage(int pageNumber)
Provides a similar structure document as the getStaticBook but only to some page. |
org.jdom.Document |
getStaticBook()
Provides a structured list of elements to be presented to the user according to a pPlanner decision. |
int |
getStatus()
Returns an integer mentionning the status. |
boolean |
isNextBestReady()
Relays the the query for the possibility of a NextBest for the current user's session to the UserModel. |
boolean |
shouldNextBest()
Relays the query to the userModel which should respond if yes or not NextBest should be offered. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Field Detail |
|---|
static final org.jdom.Namespace pagesNS
static final org.jdom.DocType doctype
| Method Detail |
|---|
org.jdom.Document getStaticBook()
For a syntax of this element, see the class org.activemath.sessionManager.StaticBookServlet.
RuntimeException - which should be related to the user and discard any further use of the planner's instance.
IllegalStateExceptionorg.jdom.Element getPage(int pageNumber)
ArrayIndexOutOfBoundsException - in case there is no such page.int getNumPages()
Exception getException()
int getStatus()
boolean isNextBestReady()
NextBest computations should be triggered by the planner as soon as he's ready with his material.
This method should return immediately, telling yes or no for the completion of the computations.
A result of false should have the nextBest "button-applet" display a "thinking" icon.
boolean shouldNextBest()
shouldNextBest should only be called after isNextBestReady has answered true
otherwise the result of shouldNextBest is unpredictable.
org.jdom.Document getNextBest()
This should not be called before the isNextBestReady displays true.
RuntimeException - relating trouble of the UserModel mechanism or communication...
This should be displayed to the user.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||