- 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
- Created a
new project call “CIAInfoFilter”.
- Created a
new package call “infofilter”.
java source file from the CD.
- Compiled the
- Issue with
key word “enum”.
- Issue of
missing “URLReaderAgentCustomizer.class” source file on the CD. To fix
this problem I had to copy the following class files into the “classes”
folder of my project and recompiled the :FilterAgent.java.
- Created a
new package call “learn”
java file “xxxxx”
- Follow the
instruction on page 290 of the text-book to enter all parameters.
Authentication failed, as I was not a registered news user of the default
host server “news1.attglobal.net”. The application returned java
- To fix this
issue I have to connect to another host server “news.ibm.software.com”
and the news group is: “ibm.servers.aix”. Click here to get a list public
- Added a
“backup” into the key word list.
- Set up the
read the URL.
- Here is the