- A. Read Chapter 8. (Text: Constructing Intelligent
Agents Using Java).
- Problem # 1:
Implement the Personal
Agent Manager, which includes FileAgent, PAManagerAgent, SchedulerAgent,
UserNotificationAgent and AirfareAgent. The source code is provided on the
text's CD-ROM. Report on the results of your implementation effort: what
worked, did not work, what you experimented with etc., and sample outputs with
descriptions of what is happening (i.e.: some documentation).
- First I have to build a new
- Imported selective “rule” java
source files (as listed below) from the CD into the rule package.
- Imported the selective
“pamanager” source files from the CD into the “pamanager” package.
- Modified the “pamanager.properties”
file (from the previous assignment) to get the class names of all
CIAgents that can run on the PAManager platform.
For example: AgentClassNames=pamanager.SchedulerAgent;pamanager.FileAgent;pamanager.AirfareAgent;pamanager.UserNotificationAgent;
- Compiled the package rule to
generate the class files.
- Issues when compiling the
package “pamanager” and “rule”.
- Issue #1: I am using JRE 1.5
the “enum” is reserved as a key word. While the source files (as listed
below) are using enum as an “identifier”. To fix this issue I have to
change “enum” to become “enum1”.
- Issue # 2: Similar to issue #
1, the source uses key word (for JRE 1.5) “assert” as shown below. To
fix the issue I have to change “assert” to become “Asserted”
- Typical error message for the
two issues above are shown below.
- After fixed the issues all
packages were compiled successfully.
- Testing: Set up the agents as
instructed on page 279 of the text book. The agents were created in the
correct order so that the event listener agent is created before the
agent that generates the event.
- Then start processing for all
- The final result of the
“pamanager” implementation is shown below:
ADD: Read Chapter 9 (InfoFilter Application).
Implement the InfoFilter Application and document some original test cases any
problems that arise