<?xml version="1.0"?>
<xb:xml-behavior
    xmlns:xb="http://www.somesite.org/someproject/namespaces/xmlbehavior"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xb:base-impl-url>http://thrush:8081/Implementation_bodies/</xb:base-impl-url>

    <xb:behaviors>
        <xb:behavior>
            <xb:class>purchase-order</xb:class>
            <xb:return-type>float</xb:return-type>
            <xb:name>calculate_average_price</xb:name>
            <xb:args>
                <xb:arg>
                    <xb:name>date</xb:name>
                    <xb:data-type>string</xb:data-type>
                </xb:arg>
                <xb:arg>
                    <xb:name>category</xb:name>
                    <xb:data-type>string</xb:data-type>
                </xb:arg>
            </xb:args>
            <xb:impl-url>calculate-average-price.py</xb:impl-url>
            <xb:ancillaries>
                <xb:ancillary>
                    <xb:name>calculate_average_price_precond</xb:name>
                    <xb:role>DBC-precondition</xb:role>
                    <xb:return-type>float</xb:return-type>
                    <xb:args>
                        <xb:arg>
                            <xb:name>date</xb:name>
                            <xb:data-type>string</xb:data-type>
                        </xb:arg>
                        <xb:arg>
                            <xb:name>category</xb:name>
                            <xb:data-type>string</xb:data-type>
                        </xb:arg>
                    </xb:args>
                    <xb:impl-url>calculate-average-price-precond.py</xb:impl-url>
                </xb:ancillary>
                <xb:ancillary>
                    <xb:name>calculate_average_price_postcond</xb:name>
                    <xb:role>DBC-postcondition</xb:role>
                    <xb:return-type>float</xb:return-type>
                    <xb:args>
                        <xb:arg>
                            <xb:name>date</xb:name>
                            <xb:data-type>string</xb:data-type>
                        </xb:arg>
                        <xb:arg>
                            <xb:name>category</xb:name>
                            <xb:data-type>string</xb:data-type>
                        </xb:arg>
                    </xb:args>
                    <xb:impl-url>calculate-average-price-postcond.py</xb:impl-url>
                </xb:ancillary>
            </xb:ancillaries>
        </xb:behavior>
        <xb:behavior>
            <xb:class>purchase-order</xb:class>
            <xb:return-type>string</xb:return-type>
            <xb:name>get_daily_volume</xb:name>
            <xb:args>
                <xb:arg>
                    <xb:name>date</xb:name>
                    <xb:data-type>string</xb:data-type>
                </xb:arg>
                <xb:arg>
                    <xb:name>category</xb:name>
                    <xb:data-type>string</xb:data-type>
                </xb:arg>
            </xb:args>
        </xb:behavior>
    </xb:behaviors>

</xb:xml-behavior>



