massim.cowsimulations
Class GridSimulationAgentPerception

java.lang.Object
  extended by massim.gridsimulations.SimulationAgentPerception
      extended by massim.cowsimulations.GridSimulationAgentPerception
All Implemented Interfaces:
java.io.Serializable, Perception, XMLCodec.XMLEncodable

public class GridSimulationAgentPerception
extends SimulationAgentPerception

This class produce the normal perception, which is sent to the agent.

See Also:
Serialized Form

Field Summary
 GridSimulationPerceptionCell[][] perception
           
 int score
           
 
Fields inherited from class massim.gridsimulations.SimulationAgentPerception
posx, posy, step
 
Constructor Summary
GridSimulationAgentPerception()
           
 
Method Summary
static void convertEntryToXML(java.lang.Object o, java.lang.Class type, org.w3c.dom.Element target, java.lang.String name)
          This method converts the perception-class-element to xml
 void encodeToXML(org.w3c.dom.Element target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

score

public int score

perception

public GridSimulationPerceptionCell[][] perception
Constructor Detail

GridSimulationAgentPerception

public GridSimulationAgentPerception()
Method Detail

encodeToXML

public void encodeToXML(org.w3c.dom.Element target)

convertEntryToXML

public static void convertEntryToXML(java.lang.Object o,
                                     java.lang.Class type,
                                     org.w3c.dom.Element target,
                                     java.lang.String name)
                              throws java.lang.IllegalAccessException
This method converts the perception-class-element to xml

Parameters:
o - The object to convert
type - The classtype of the object.
target - The target
name - The objectname
Throws:
java.lang.IllegalAccessException


Copyright © 2012. All Rights Reserved.