Class diagram
Market
Recieves all sell and buy orders from agents and resolves them into trades. Orders are processed using double auctions.
Agent
Represents an agent that produces, consumes, buys and sells commodities on the market.
Inventory
Holds an agent's stock of all commodities.
PriceRange
Represents an agent's percieved value of a commodity.