Database Reference
In-Depth Information
Similar to MiningSettings , each class representing a type of agent settings
extends AgentSettings. Along with all agents, XELOPES provides their associated
settings classes containing all basic parameters of the respective agents.
AgentSettings contains the same variable function or stores the function of the
agent. A specific property of agent settings is the methods to request and to define
whether the agent works in a stateless or stateful mode. Of course, not all agents
support both modes.
12.2.1.3 Agent Specification
The agent-specific class AgentSpecification , which is the agent counterpart to
MiningAlgorithmSpecification , contains the function, the name, the class path, the
version, and an array of specific parameters of an agent. This array contains the
specific parameters defined by the AgentParameter class. Every parameter is
described by its name, type, value, description, and setter method and contains
the reference to its associated AgentSpecification object.
In most XELOPES implementations, the complete information of AgentSpe-
cification for all agents and parameters is stored in the configuration file
agents.xml .
Example 12.16 Example of
the section of price optimization algorithm
DiscountAgent of agents.xml :
< AgentSpecification name ¼ "DiscountAgent"
function ¼ "PriceOptimization"
classname ¼ "com.prudsys.pdm.Agent.Pricing.Discount.
DiscountAgent"
description ¼ "Discount Price Optimization Agent."
version ¼ "1.0" >
< AgentParameter name ¼ "initC"
type ¼ "double"
value ¼ "10.0"
method ¼ "setInitC"
description ¼ "Initial price elasticity after the first
order."/ >
< AgentParameter name ¼ "debug"
type ¼ "java.lang.String"
value ¼ "none"
method ¼ "setDebug"
description ¼ "Possible values:none, all, a list of
itemIDs."/ >
< /AgentSpecification >
Search WWH ::




Custom Search