|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.agents.CLAgent
Implements the generic handle to Agents for Rule based agents.
Field Summary | |
protected edu.uiuc.ge.illigal.gale.agents.AgentPerformance |
agnPer
Agent Performance object |
protected edu.uiuc.ge.illigal.gale.data.AttributeSet |
attCnf
The attributes information for instances |
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration |
galeCnf
The GALE environment configuration object |
protected java.util.Vector |
genVec
Genetic material vector |
protected int[] |
iaMatch
Match information |
protected int[] |
iaPrune
Prune information |
protected java.util.Random |
rnd
Random number generator object |
Constructor Summary | |
CLAgent()
Builds a simple agent with null information |
|
CLAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale,
edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Builds a simple agent. |
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 attSet)
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. |
protected boolean |
equalRules(int[] ia1,
int[] ia2)
Check if the rules are equal. |
edu.uiuc.ge.illigal.gale.agents.AgentPerformance |
getPerformance()
Provides the classification performance information. |
static void |
main(java.lang.String[] sArgs)
|
protected boolean |
matched(int[] ia,
edu.uiuc.ge.illigal.gale.data.Instance ins)
Check if the rule is matched by the instance. |
edu.uiuc.ge.illigal.gale.agents.Agent |
merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
Merges two agents. |
protected void |
mutateGenotype()
Mutates the genetic material of instances. |
edu.uiuc.ge.illigal.gale.agents.Agent |
prune()
Clean spurious issues. |
protected void |
removeRepeatedRules(java.util.Vector vec)
Remove the repeated rules. |
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 |
protected java.util.Vector |
translateArray(int[] iaGen,
int iLen)
Build the vector representation of a genetic array. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf
protected edu.uiuc.ge.illigal.gale.data.AttributeSet attCnf
protected edu.uiuc.ge.illigal.gale.agents.AgentPerformance agnPer
protected java.util.Random rnd
protected java.util.Vector genVec
protected int[] iaPrune
protected int[] iaMatch
Constructor Detail |
public CLAgent()
public CLAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale, edu.uiuc.ge.illigal.gale.data.AttributeSet att)
gale
- The GALE configurationMethod Detail |
public edu.uiuc.ge.illigal.gale.agents.Agent buildAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf, edu.uiuc.ge.illigal.gale.data.AttributeSet attSet)
Agent
buildAgent
in interface Agent
galeCnf
- The GALE configuration objectattSet
- The attributes set information object
public void resetPerformance()
Agent
resetPerformance
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.AgentPerformance getPerformance()
Agent
getPerformance
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.Agent merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
Agent
merge
in interface Agent
agn
- The second agent to be merged
protected void removeRepeatedRules(java.util.Vector vec)
vec
- the vector to processprotected boolean equalRules(int[] ia1, int[] ia2)
ia1
- the first ruleia2
- the second rule
protected java.util.Vector translateArray(int[] iaGen, int iLen)
iaGen
- the float array to translateiLen
- the length of useful information in the array
public edu.uiuc.ge.illigal.gale.agents.Agent split()
Agent
split
in interface Agent
protected void mutateGenotype()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Agent
clone
in interface Agent
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Thrown when the agent cannot be
clonedpublic float complexity()
Agent
complexity
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.Agent prune()
Agent
prune
in interface Agent
public int classify(edu.uiuc.ge.illigal.gale.data.Instance ins)
Agent
classify
in interface Agent
protected boolean matched(int[] ia, edu.uiuc.ge.illigal.gale.data.Instance ins)
ia
- the rule to be checkins
- the instance
public java.lang.String toString()
Agent
toString
in interface Agent
toString
in class java.lang.Object
public static void main(java.lang.String[] sArgs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |