Grid Based Agro-Produce

download Grid Based Agro-Produce

of 31

Transcript of Grid Based Agro-Produce

  • 8/3/2019 Grid Based Agro-Produce

    1/31

    Grid based Agro-Produce

    Marketing System

    Sanjay Chaudhary

    DA-IICT,

    India

    Ashok Patel

    SAMETI and ATMA

    Gujarat, India

  • 8/3/2019 Grid Based Agro-Produce

    2/31

    August 2, 2007 e-Agriculture India 2007 2

    Problem: The farmers have little choice to search forthe best available price and are forced to sell theirproducts in a local market.

    Motivation: Grid Computing and Service-OrientedComputing can support required middleware anddevelopment of loosely-coupled, autonomous

    services distributed across organizations. Aim: To identify requirements, propose architecture,

    design and implementation of various grid services to

    computerize nation wide APMCs and privatemarkets to enable seemless trade among buyers andsellers of agro-produce.

  • 8/3/2019 Grid Based Agro-Produce

    3/31

    August 2, 2007 e-Agriculture India 2007 3

    Presentation Outline

    Background Motivation

    System Design Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    4/31

    August 2, 2007 e-Agriculture India 2007 4

    Presentation Outline

    Background Motivation

    System Design Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    5/31

    August 2, 2007 e-Agriculture India 2007 5

    Background

    The Model Act [1] is formulated to bring reforms in theAgricultural Marketing Process. Additional responsibilitiesare assigned to the existing Agricultural Produce MarketCommittee (APMC) to realize the reforms havingfollowing objectives:

    To promote setting up of privately-owned markets To promote direct sale and contract farming

    To provide transparency in trading transactions

    To provide market-led extension

    To ensure payment on the same day

    To enable value addition in agricultural produce bypromoting processing

  • 8/3/2019 Grid Based Agro-Produce

    6/31

    August 2, 2007 e-Agriculture India 2007 6

    Presentation Outline

    Background Motivation

    System Design Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    7/31

    August 2, 2007 e-Agriculture India 2007 7

    Motivation

    A real life example of Agricultural Marketing Process inIndia is considered.

    The Model Act is expected to bring reforms in theAgricultural Marketing Process in India.

    A typical trade can span across the markets located atvarious places.

    Privately owned markets are allowed, food processing andother related industries are allowed to trade directly with

    the farmers. Hence the trading in such a competitive market will be

    more complex than that in the existing scenario.

  • 8/3/2019 Grid Based Agro-Produce

    8/31

    August 2, 2007 e-Agriculture India 2007 8

    Workflow of a trading process

  • 8/3/2019 Grid Based Agro-Produce

    9/31

    August 2, 2007 e-Agriculture India 2007 9

    Presentation Outline

    Background Motivation

    System Design Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    10/31

    August 2, 2007 e-Agriculture India 2007 10

    Use Case Diagram of Agricultural Marketing System

  • 8/3/2019 Grid Based Agro-Produce

    11/31

    August 2, 2007 e-Agriculture India 2007 11

    Interaction Diagram of Agricultural Marketing System

  • 8/3/2019 Grid Based Agro-Produce

    12/31

    August 2, 2007 e-Agriculture India 2007 12

    Our Proposal

    The proposal is mainly depending upon WS-* specifications, specifically Web services Resource Framework WS-RF,

    WS-Notification (WSN) specifications,

    Grid Services for resource management, job scheduling,and execution and monitoring,

    BPEL standard for workflow and composition schemagenerations.

    The architecture shown in figure 2 comprises variouscomponents.

    All the components are not participating in thisexperiment.

  • 8/3/2019 Grid Based Agro-Produce

    13/31

    August 2, 2007 e-Agriculture India 2007 13

    Architecture of Agricultural Marketing System

  • 8/3/2019 Grid Based Agro-Produce

    14/31

    August 2, 2007 e-Agriculture India 2007 14

    Seller

    GridManager

    Client

    1.Specify crop name,crop quantity, crop

    variety, market,

    expected price,

    GridManager

    Service

    2.Create new seller

    instance

    Seller

    Service

    3.Initialize

    Resource

    6.ReturnEPR

    DefaultIndex

    Service

    SellerResource

    4.Create

    Resource 5.Register

    7.Invoke Operation

    8.Invoke

    Operationto updateresource 9.Update

    Buyer Service Sequence Diagram

  • 8/3/2019 Grid Based Agro-Produce

    15/31

    August 2, 2007 e-Agriculture India 2007 15

    Buyer

    GridManagerClient

    1.Specify crop name,crop quantity, crop

    variety, market, price on

    offer,

    GridManagerService

    2.Create new buyer

    instance

    BuyerService

    3.Initialize

    Resource

    6.ReturnEPR

    DefaultIndexService

    BuyerResource

    4.Create

    Resource 5.Register

    7.Invoke Operation

    8.Invoke

    Operationto updateresource 9.Update

    Seller Service Sequence Diagram

  • 8/3/2019 Grid Based Agro-Produce

    16/31

    August 2, 2007 e-Agriculture India 2007 16

    Sequence Diagram of Market Service for Direct Trading

    Market

    GridManager

    Client

    GridManager

    Service

    2.Create new

    market instance

    Market

    Service

    3.Initialize

    Resource

    5.Return EPR

    DefaultIndexService

    Market

    Resource

    4.Create

    Resource

    6.Invoke

    Operation

    7.Invoke

    Operation to

    updateresource

    Seller

    Service

    Buyer

    Service

    Seller

    Resource

    Buyer

    Resource

    8.Get buyers and sellers

    9. EPR of Buyers and sellers of a market

    10.Match?Invoke

    operation11.Update

    Resource

    12. Invoke operation 13.Update

    Resource

    Specify location of

    a market

  • 8/3/2019 Grid Based Agro-Produce

    17/31

    August 2, 2007 e-Agriculture India 2007 17

    : Sequence Diagram of Market Service for Indirect Trading

    Market

    GridManager

    Client

    1.Specify location

    of a market

    GridManager

    Service

    Market

    Service

    3.Initialize

    Resource

    5.Return EPR

    DefaultIndexService

    Market

    Resource

    4.Create

    Resource

    6.Invoke

    Operation

    7.Invoke

    Operation to

    update

    resource

    VehicleFee

    Service

    Seller

    Service

    MarketFee

    Service

    Seller

    Resource

    8.Get buyers and sellers

    9. EPR of Buyers and sellers of a market

    12.Update

    Resource

    10.Deduct

    Vehicle Fees

    13.Deduct Marketing Fees

    11.Invoke Operation

    15.Update

    Resource

    14. Invoke

    Operation

    Create new

    market instance

  • 8/3/2019 Grid Based Agro-Produce

    18/31

    August 2, 2007 e-Agriculture India 2007 18

    Presentation Outline

    Background Motivation

    System Design

    Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    19/31

    August 2, 2007 e-Agriculture India 2007 19

    Research Experiments and Results

    Web Services Developed: Seller Service

    Buyer Service

    Market Service GridManager Service

    VehicleFee Service

    CropPrice Service MarketFee Service

  • 8/3/2019 Grid Based Agro-Produce

    20/31

    August 2, 2007 e-Agriculture India 2007 20

    Execution of Seller Grid Service

    $ java -DGLOBUS_LOCATION=$GLOBUS_LOCATIONorg.sws.examples.clients.GridManager.Clienthttp://10.100.64.65:8080/wsrf/services/sws/examples/GridManager seller wheat 50 kamla Bhopal 60 direct

    Execution of seller grid service will start and will wait for appropriate offer to come froma potential buyer. Seller grid service will receive notification, once an appropriateoffer is floated by a buyer. Initially, following output will be generated:

    END POINT STRING:

    http://10.100.64.65:8080/wsrf/services/sws/examples/SellerService

    a1662350-1628-11db-9878-ce21816644d9

    Waiting for notification. Ctrl-C to end.Waiting for notification. Ctrl-C to end.

  • 8/3/2019 Grid Based Agro-Produce

    21/31

    August 2, 2007 e-Agriculture India 2007 21

    Execution of Buyer Grid Service

    $java -DGLOBUS_LOCATION=$GLOBUS_LOCATION

    org.sws.examples.clients.GridManager.Clienthttp://10.100.64.65:8080/wsrf/services/sws/examples/GridManager buyer wheat10 kamla Bhopal 70

    Here, execution of buyer grid service will start and it will wait forappropriate match to be identified in a market located at Bhopal.

    END POINT STRING:http://10.100.64.65:8080/wsrf/services/sws/examples/BuyerService

    3136b260-1629-11db-9878-ce21816644d9

    Waiting for notification. Ctrl-C to end.

    Waiting for notification. Ctrl-C to end.

  • 8/3/2019 Grid Based Agro-Produce

    22/31

    August 2, 2007 e-Agriculture India 2007 22

    Execution of Market Grid Service

    $ java -DGLOBUS_LOCATION=$GLOBUS_LOCATION

    org.sws.examples.clients.GridManager.Clienthttp://10.100.64.65:8080/wsrf/services/sws/exampl

    es/GridManager market Bhopal

    Once market service of a particular location starts executing,

    it tries to match potential buyers and sellers. If an appropriatebuyer is found for a seller, appropriate notification is sent toboth of them to inform them about success of entering into atrade deal. Otherwise both of them will wait for a potential

    purchaser of a crop. In case of indirect trade mode, the sellerreceives various types of notifications, which are computedfor this trade.

  • 8/3/2019 Grid Based Agro-Produce

    23/31

    August 2, 2007 e-Agriculture India 2007 23

    Notification to Seller Service

    A new notification has arrived

    Your crop sold till now is 10.0KgA new notification has arrived

    Your crop has been sold recently

    A new notification has arrived

    Your crop quantity still remaining to be sold is:40.0Kg

    A new notification has arrived

    Amount Offered to you per Kg is Rs70.0

    A new notification has arrived

    Crop Quantity Which will be purchased by a buyer is10.0Kg

    A new notification has arrivedYour Earning is Rs700.0

    Waiting for notification. Ctrl-C to end.

  • 8/3/2019 Grid Based Agro-Produce

    24/31

    August 2, 2007 e-Agriculture India 2007 24

    Notification to a buyer service

    Following notification will be generated for a buyerservice:

    A new notification has arrived

    The Crop Quantity which you will purchase from a

    seller is 10.0KgA new notification has arrived

    Amount Offered by you per Kg is:Rs70.0

    A new notification has arrived

    Amount spent by you in current purchase isRs700.0

  • 8/3/2019 Grid Based Agro-Produce

    25/31

    August 2, 2007 e-Agriculture India 2007 25

    Component Interaction Diagram

  • 8/3/2019 Grid Based Agro-Produce

    26/31

    August 2, 2007 e-Agriculture India 2007 26

    Interactions among services

  • 8/3/2019 Grid Based Agro-Produce

    27/31

    August 2, 2007 e-Agriculture India 2007 27

    Presentation Outline

    Background Motivation

    System Design

    Research Experiment and Results

    Conclusions and Future work

  • 8/3/2019 Grid Based Agro-Produce

    28/31

    August 2, 2007 e-Agriculture India 2007 28

    Conclusions and Future work

    Issues related to execution of workflow in a grid environment

    are identified. Attention was towards the utilization and integration of existing

    technologies to achieve seamless interoperable integration with

    state, transaction, notification and scalability support.

    To achieve these objectives, we proposed service-oriented grid

    architecture based on relevant specifications and standards in

    this area.

    We have shown the use of WS-RF to provide statefull webservices, WSN for notification and BPEL to model the business

    process with support for transaction and notification.

  • 8/3/2019 Grid Based Agro-Produce

    29/31

    August 2, 2007 e-Agriculture India 2007 29

    Conclusions and Future work

    This work is a part of our ongoing research to achievedynamic event driven Web services composition forautomation of business processes, where diversity isobserved in product, terminology and at process level.

    We have demonstrated the use of grid services to providerequired middleware support. Convergence of grid andWeb services standards and specifications for the completeexecution of a business process is discussed in this chapter.

    The future work is diverted into several paths: implementation of policy, agreement, negotiation, and use ofsemantic web to provide meaningful integration and coordinationof resources in a grid environment.

  • 8/3/2019 Grid Based Agro-Produce

    30/31

    August 2, 2007 e-Agriculture India 2007 30

    Questions?

  • 8/3/2019 Grid Based Agro-Produce

    31/31

    August 2, 2007 e-Agriculture India 2007 31

    Thank you

    Dr. Sanjay Chaudhary

    Associate Professor,

    Dhirubhai Ambani Institute of Information andCommunication Technology

    E-mail: [email protected]

    Prof. Ashok PatelDirector, SAMETI and SNO, ATMA, Gujarat State

    E-mail: [email protected]