edu.udo.cs.ie.cowbots.env
Class MassimSVGReader
java.lang.Object
edu.udo.cs.ie.cowbots.env.MassimSVGReader
public class MassimSVGReader
- extends java.lang.Object
this class reads massim 2010 svg output
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mapX
public int mapX
mapY
public int mapY
data
public java.util.ArrayList<MassimSVGReader.Cell> data
valid
public boolean valid
scaleX
protected int scaleX
scaleY
protected int scaleY
MassimSVGReader
public MassimSVGReader(int x,
int y)
read
public void read(java.lang.String file)
- read a svg file
- Parameters:
file
-
parseCows
protected void parseCows(org.w3c.dom.Element e)
parseFences
protected void parseFences(org.w3c.dom.Element e)
parseAgents
protected void parseAgents(org.w3c.dom.Element e)
parseGrid
protected void parseGrid(org.w3c.dom.Element e)
parseSwitch
protected void parseSwitch(org.w3c.dom.Element e)
parseObstacle
protected void parseObstacle(org.w3c.dom.Element e)
parseCorral
protected void parseCorral(org.w3c.dom.Element e)
addCellXY
protected void addCellXY(org.w3c.dom.Element e,
int CellType)
addCellTransform
protected void addCellTransform(org.w3c.dom.Element e,
int CellType)
cellTransform
protected MassimSVGReader.Cell cellTransform(java.lang.String s,
int t)
addCell
protected void addCell(int x,
int y,
int t)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object