|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectix.iquery.LookupHandler
public abstract class LookupHandler
Performs a lookup for a query agent.
See IQuery for an example.
| Field Summary | |
|---|---|
protected Activity |
lookupActivity
The activity this handler is processing. |
protected IQuery |
queryAgent
The agent that created this handler. |
| Constructor Summary | |
|---|---|
LookupHandler(IQuery queryAgent,
Activity lookupActivity)
Creates a LookupHander to handle the specified activity for the specified agent. |
|
| Method Summary | |
|---|---|
protected abstract void |
handleLookup()
Looks up information and sends report back to the agent that sent us the activity. |
protected Report |
makeReport(Activity about,
ReportType type,
java.lang.String text)
Constructs a report about the specified activity. |
protected Report |
makeReport(ReportType type,
java.lang.String text)
Constructs a report about this handler's lookupActivity. |
protected Constraint |
makeStateConstraint(LList pattern)
|
protected Constraint |
makeStateConstraint(LList pattern,
java.lang.Object value)
|
protected Constraint |
makeStateConstraint(java.lang.String pattern)
|
protected Constraint |
makeStateConstraint(java.lang.String pattern,
java.lang.Object value)
|
protected void |
sendAbout(Activity about,
java.lang.Object contents)
Sends to the agent that should receive reports about the specified activity. |
protected void |
sendReply(java.lang.Object contents)
Sends to the agent that send this handler's lookupActivity. |
protected void |
sendReport(Activity about,
ReportType type,
java.lang.String text)
Sends a report about the specified activity. |
protected void |
sendReport(ReportType type,
java.lang.String text)
Sends a report about this handler's lookupActivity
by calling sendReport(Activity, ReportType, String). |
protected void |
sendTo(java.lang.Object destination,
java.lang.Object contents)
Sends the contents object to the agent represented by the specified destination. |
protected void |
transcript(java.lang.String line)
Adds a line to the agent's transcript window after switching to the AWT event-handling thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IQuery queryAgent
protected Activity lookupActivity
| Constructor Detail |
|---|
public LookupHandler(IQuery queryAgent,
Activity lookupActivity)
| Method Detail |
|---|
protected void transcript(java.lang.String line)
Util.swingAndWait(Runnable)
protected void sendReport(ReportType type,
java.lang.String text)
lookupActivity
by calling sendReport(Activity, ReportType, String).
protected void sendReport(Activity about,
ReportType type,
java.lang.String text)
makeReport(Activity, ReportType, String),
sendAbout(Activity, Object)
protected Report makeReport(ReportType type,
java.lang.String text)
lookupActivity.
protected Report makeReport(Activity about,
ReportType type,
java.lang.String text)
protected void sendReply(java.lang.Object contents)
lookupActivity.
sendAbout(Activity, Object)
protected void sendAbout(Activity about,
java.lang.Object contents)
This method calls sendTo(Object, Object).
protected void sendTo(java.lang.Object destination,
java.lang.Object contents)
IPC.sendObject(Object, Object) after switching
to the AWT event-handling thread.
Util.swingAndWait(Runnable)
protected Constraint makeStateConstraint(LList pattern,
java.lang.Object value)
protected Constraint makeStateConstraint(LList pattern)
protected Constraint makeStateConstraint(java.lang.String pattern,
java.lang.Object value)
protected Constraint makeStateConstraint(java.lang.String pattern)
protected abstract void handleLookup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||