Order-Tracing Agent

Download Report

Transcript Order-Tracing Agent

代理人技術應用於全球運籌管理之
即時線上訂單追蹤
Using Agent technology on
Online Order-Tracing in Global Logistics
• 系別 工業工程與工程管理學系 組別 工業工程組
• 學生姓名
陳卓觀
同學
• 指導教授
張瑞芬
博士
Outline
Order-Tracing Agent
•
•
•
•
•
•
Research Purposes
What’s Intelligent Agent?
Classification of Agent
Anatomy of Aglet
Mobile Agent Transfer
Advantages of Using Mobile Agent
Outline (cont.)
Order-Tracing Agent
•
•
•
•
•
•
Concept of Global Logistics
Purchasing Processes
Agent Structure
System Structure
Example
System Installation
Research Purposes
Order-Tracing Agent
• Corporate executives have difficulty in
make organizational enterprise
changes for extended integration
• Large amount and disorganized
information impedes enterprises
efficiency
• Quick response of order status
enables better customer services
What’s Intelligent Agent?
[Wooldridge and Jennings 1995]
• Autonomous: agents perform majority of their tasks
without the direct intervention of humans or other agents.
• Social ability: agents interact, when they deem order to
accomplish their tasks and to help others.
• Responsiveness: agents perceive their environment and
respond in a timely fashion to changes occurring in the
environment.
Classification of Agent
• Static and Mobile Agents
• Interface Agents
• Collaborative Agents and Multi-Agent
System
Anatomy of Aglet
Mobile Agent Paradigm
Agent
Know-how
Agent
Network
Know-how
Aglet Proxy
Application
Remote Proxy
Host A
Host B
Aglet
Aglet Transfer
Sender
Receiver
Suspend Execution
Resume Execution
Serialize Agent
De-serialize Agent
Encode Data
Decode Data
Transfer Data
Receive Data
Network
Collaboration Diagram for
Aglet Creation
• creatAglet ( )
• Aglet ( )
• onCreation ( )
• Run ( )
Aglet Messaging
• Synchronous Messaging
Aglet
1: Send Message Aglet
Proxy
object
Message
Handler
object
Aglet Messaging (conj.)
• Asynchronous Messaging
Aglet
1: Send Message Aglet
Proxy
object
2: Get Reply
Message
Handler
object
Future
Reply
Advantages of Using Mobile Agent
• Cut down network load (makes the connection
quality better).
Application
Service
Traditional-Based
Approach
Host A
Host B
Service
Service
Application
Mobile Agent-Based
Approach
Mobile Agents and Network Load Reduction
(Danny B. Lange, 1998)
Advantages of Using Mobile Agent
(cont.)
• They overcome network latency
• They execute asynchronously and
autonomously. Mobile Agent has capability
of adapting and reacting network
environment changes dynamically and
automatically.
Advantages of Using Mobile Agent
(cont.)
• Fault-tolerant. When a host where Agent is
running tends to crash, all Agents will be
warned and given time to dispatch and
continue their tasks on another host in the
network.
• Scalability. Another benefit of using Agent
system is easy to add new Agents to an
existed Agent host.
Concept of
Global Logistics
International Market
Airplane
Order-Tracing Agent
Importation
Exportation
Distribution Center
Logistics Service
Logistics Service
Distribution Center
Consumer
Retailer
Logistics Service
Factory
Wholesaler
Virtural
Activities
Actual
Activities
Customer
Retailer
Purchase Interface
Place Order
Update Data
User
Purchasing
Processes
Feedback Order Code
Order
Data Retrieving
Recei ve Or der
I nf or mat i on
Receive Task
Internal System
Ask for Delivery
Place Order to Manufacturer
Manufacturer
Delivery
Update Data
Logistics Service
Data Retrieving
Stock Out
Information
Database
Place Order to Supplier
or
Manufacturing Assignment
Update the Status of Order
Internal System
Receive Task
Ask for Delivery
Place Order to Manufacturer
Logistics Service
Supplier
Delivery
Update Data
Ask for Delivery
Data Retrieving
Database
Receive Task
Scheduling Request
Update the Status of Order
Internal System
Order-Tracing Agent
Stock Out
Information
Database
Agent Structure
Users
Order-Tracing Agent
Computer
User Interface
Agents
Coordinators Agent
Information
Grabber
External Resource
Database
Internet
Name
Roles
User
When making a tracking request via a portal web-site,
users provide Order-No or Customer-No to User
Interface.
User Interface
User Interface receives users’ information and passes it
Coordinators.
Coordinators Agent
Coordinator Agent gets information from user through
User Interface, and then performs routing, that is,
figuring the company holding the user’s order.
Information Grabber
After routing, Coordinator Agent passes the information
got from user to Information Grabber. Then
Information Grabber grabs related data from external
source either via mid-tier programs or by itself.
External Resources
External Resource is where the needed data externally
stored.
Consumers
Order Placement
Information
Passing
Explorer
Integration
Java Programs
of
and
Business
Logic
Order-Tracing Agent
System
Agent Center
Agent Assignment
International Market
Airplane
Retailer
Agent
Importation
Purchase
Interface
Place Order to
Manufacture
Recei ve Or der
I nf or mat i on
Manufacturer
Exportation
Distribution Center
Distribution
Center
Supplier
Agent
Distribution Center
Distribution Center
Alliance’s Information
GPS Data Collection
for Detail
Order-Tracing Agent
Delivery
Order
Job
Assignment
•TEL
•FAX
•E-MAIL
•WWW
•Designated
professional
driver with
badge
• truck
Documentation
and Confirmation
•Delivery
confirmation
•Payment
processing
P ay to
$
$
Delivery and
Unloading
•Unloading
inspection and
counting
•Customer
receiving and
signing
Pickup and
Loading
$
•Pickup
inspection and
counting
•Proper packing
and loading
Transportation
•Designated
routing
•Cellular phone
communication
•Non-stop delivery
Retailer
Explorer
Order-Tracing Agent
Order-Tracing
Request
and
Response
Customer-No
Order-No
User’s filling in
Result of Inquiry
Order ID
K893814
Order Title
Java2
Order Date:
Location
7/15/2001 AM 11:00:00
L.A.
Running Task(s):
Company A
Supplier B
X day
Supplier C
Company A
Y day
UPS
Customer
System
Structure
1.Send
Customer ID or Order ID
to Retailer’s Website
for Tracking Request
Order-Tracing Agent
Agent Center
3. Receives the ID
Agent Center Elements
AgentCenterHub
AgentWebServer
ID
4. Retrieving Database
Data for Alliances’ IP
ID
2.Pass ID to Agent Center
5. Coordinators heads
the Destinations
According to the IP
Retailer
AnyWebServer
6. Coordinators Invoke
Information Grabbers in
each Alliance
7. Information Grabbers Check the Database
See if the Specific Order is Existed.
8. If Existed, Send Affirmative Message.
Otherwise, Send Negative Message to the
Coordinators.
System
Procedure(1)
Order-Tracing Agent
Retailer
• 1. Send Customer ID or Order ID to retailer’s
website. Retailer means who the customer placed
order to. Any type of Web-Server can be used for
receiving users’ Order-Tracing request entrance
only if it is connected to Agent-Center.
• 2. Pass ID to Agent-Center. Alliances’ web-servers
must have two main features to work with AgentCenter. One is the parameters that will be received
by Agent-Center; two is the ‘action’ got to be
pointed to the Agent-Center’s address.
• 3. In the Agent-Center, here is a critical component
called Agent-Web-Server, which is full time
standby for receiving ID messages that customers
passed to retailer’s Web-Server. Agent-WebServer acts as the main role in the Order-Tracing
system. In this step, when retailer’s web-server
receives customers ID messages, it will be
automatically passed to Agent-Web-Server, and a
sequence of activities will be invoked by the AgentWeb-Sever.
System
Procedure(2)
Order-Tracing Agent
• 4 AgentCenterHub Agent is invoked to
decide which alliance it should dispatch
to. The searching mechanism is
designed and programmed here. By
retrieving the IP address stored in the
AgentCenter’s database, Agents have
AgentWebServer
specific destinations to go and ask for
certain services.
AgentCenterHub
• 5. After AgentCenterHub has destination
data in hand, Coordinators are invoked to
Coordinator
be dispatched to those destinations and
are given the customer’s ID data.
• 6. Coordinators invoke Information
Grabbers in Alliances’ hosts and pass the
ID to it.
System
Procedure(3)
Order-Tracing Agent
• 7. The Information Grabber invoked by
the Coordinator then starts to retrieve
the local database and set about its
order existence check procedure
according to the customer’s ID.
• 8. If this specific order is confirmed to
be existed in certain firm, the
Information Grabber then replies
‘Affirmative’ to the Coordinator. The
Coordinator then goes back and
reports it to the AgentWebServer Agent
to have the Presenter ready to present
the order information.
Example
Scenario Introduction
Customer
UPX North America Branch
Airlift
FeDes
Taiwan Branch
UPX
South Africa Branch
Ocean
shipping
UPX Australia Branch
Ocean shipping
Example
Order-Tracing Request
Example
Launch Agent
Example
Order-Tracing Result
Example
Arrival Date
2002/1/1
Arrival Date
2002/1/3
Arrival Date
2002/1/5
System Installation
Agent platform installation:
1. Directly copy the Aglet1.1_ from the source CD to the destination directory.
2. Set up the environment variable:
CLASSPATH:
Agent variable: .;C:\aglets1.1.0\lib;C:\aglets1.1.0\public;
For connecting Oracle database: o:\oracle\ora81\jdbc\lib\classes12.zip;
For connecting SQL database: C:\driver\freetds_jdbc\freetds_jdbc.jar
Add aglet_home variable and set it for your aglet directory
Add jdk_home variable and set it for your jdk directory
PATH:
C:\aglet1.1_\aglets1.1.0\bin;
Note that the C: or o: directory is depending on where you installed it for.
System Installation
Dealer side: copy the files from the CD’s directory “system/dealer_side” to your system’s (aglethome, usually named
Aglet1.1_)/ aglets1.1.0/ public/ thesis.
Data side: copy the files from the CD’s directory “system/data_side” to your system’s (aglethome, usually named
Aglet1.1_)/ aglets1.1.0/ public/ thesis.
Note: customize the “InfoGrabber.java” file for connecting the database. And then recompile this modified file and
reboot the Aglet system.
Order-Tracing
System
Platform Structure
AgentCenter
Aglet Programs
Aglet Server
Order-Tracing Agent
Security Layer
Java Virtual Machine
Database
Windows Operating System
Data-Side
Web Server
Operating System
Aglet Programs
Aglet Server
Receives
Request Side
Security Layer
Java Virtual Machine
Database
Windows Operating System