edu.cmu.emulator.world
Class WorldDefParser

java.lang.Object
  extended by edu.cmu.emulator.world.WorldDefParser

public class WorldDefParser
extends Object

The parser for parsing the WorldDef tag in the config file.


Field Summary
 WorldDef worldDef
           
 
Constructor Summary
WorldDefParser()
           
 
Method Summary
 WorldDef parse(Element worldDefElement)
          This method takes as input the DOM element representing the WorldDef tag and parses through its subtree.
 void print(WorldDef worldDef)
          This method prints the data extracted from the NodeDef tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

worldDef

public WorldDef worldDef
Constructor Detail

WorldDefParser

public WorldDefParser()
Method Detail

parse

public WorldDef parse(Element worldDefElement)
This method takes as input the DOM element representing the WorldDef tag and parses through its subtree.

Parameters:
worldDefElement - The DOM element which represents the WorldDef tag subtree.
Returns:
A shiny new WorldDef object.

print

public void print(WorldDef worldDef)
This method prints the data extracted from the NodeDef tag.



Copyright © 2013. All Rights Reserved.