edu.uiuc.ge.illigal.gale.agents
Interface Agent

All Known Implementing Classes:
CLAgent, DTAgent, IBAgent

public interface Agent

Defines a generic handle to Agents. It presents the minimal set of functions that an agent (single or aggregated) must provide.

Since:
0.9alpha
Version:
0.9alpha
Author:
Xavier Llorà <xllora@illigal.ge.uiuc.edu>

Method Summary
 edu.uiuc.ge.illigal.gale.agents.Agent buildAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf, edu.uiuc.ge.illigal.gale.data.AttributeSet att)
          Returns a random builded agent.
 int classify(edu.uiuc.ge.illigal.gale.data.Instance ins)
          Classifies the given instance
 java.lang.Object clone()
          Clones the handled agent.
 float complexity()
          Returns a complexity measure.
 edu.uiuc.ge.illigal.gale.agents.AgentPerformance getPerformance()
          Provides the classification performance information.
 edu.uiuc.ge.illigal.gale.agents.Agent merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
          Merges two agents.
 edu.uiuc.ge.illigal.gale.agents.Agent prune()
          Clean spurious issues.
 void resetPerformance()
          Resets the agents' performance.
 edu.uiuc.ge.illigal.gale.agents.Agent split()
          Splits an agent
 java.lang.String toString()
          Returns the stringfied form of the agent
 

Method Detail

getPerformance

public edu.uiuc.ge.illigal.gale.agents.AgentPerformance getPerformance()
Provides the classification performance information.

Returns:
The handle to the classification performance

resetPerformance

public void resetPerformance()
Resets the agents' performance.


merge

public edu.uiuc.ge.illigal.gale.agents.Agent merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
Merges two agents.

Parameters:
agn - The second agent to be merged
Returns:
The merged agent

split

public edu.uiuc.ge.illigal.gale.agents.Agent split()
Splits an agent

Returns:
The splitted agent

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones the handled agent.

Overrides:
clone in class java.lang.Object
Returns:
The cloned agent
Throws:
java.lang.CloneNotSupportedException - Thrown when the agent cannot be cloned

complexity

public float complexity()
Returns a complexity measure.

Returns:
The complexity measure

prune

public edu.uiuc.ge.illigal.gale.agents.Agent prune()
Clean spurious issues.


classify

public int classify(edu.uiuc.ge.illigal.gale.data.Instance ins)
Classifies the given instance

Returns:
The predicted class

toString

public java.lang.String toString()
Returns the stringfied form of the agent

Overrides:
toString in class java.lang.Object
Returns:
The stringfied agent

buildAgent

public edu.uiuc.ge.illigal.gale.agents.Agent buildAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf,
                                                        edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Returns a random builded agent.

Parameters:
galeCnf - The GALE configuration object
att - The attributes set information object
Returns:
The agent