edu.cmu.emulator.creator.config
Class Config

java.lang.Object
  extended by edu.cmu.emulator.creator.config.ConfigNode
      extended by edu.cmu.emulator.creator.config.Config

public class Config
extends ConfigNode


Field Summary
private  DSPConfigDef dspConfig
           
private  List<EventGroup> eventGroups
           
private  Map map
           
private  List<EmuNode> nodes
           
private  String routeLibrary
           
private  List<Route> routes
           
private  List<UserClass> userClasses
           
 
Constructor Summary
Config()
          Create a new configuration.
Config(List<EmuNode> nodes, DSPConfigDef dspConfig, List<EventGroup> eventGroups, List<UserClass> userClasses, Map map, List<Route> routes, String routeLibrary)
           
 
Method Summary
static Config fromXML(Element el)
          Create a new configuration from an XML source.
 DSPConfigDef getDSPConfigDef()
           
 List<EventGroup> getEventGroups()
           
 Map getMap()
           
 List<EmuNode> getNodes()
           
 String getRouteLibrary()
           
 List<Route> getRoutes()
           
 List<UserClass> getUserClasses()
           
 Element toXML(Document doc)
          Create an XML representation of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

private List<EmuNode> nodes

dspConfig

private DSPConfigDef dspConfig

eventGroups

private List<EventGroup> eventGroups

userClasses

private List<UserClass> userClasses

map

private Map map

routes

private List<Route> routes

routeLibrary

private String routeLibrary
Constructor Detail

Config

public Config()
Create a new configuration.


Config

public Config(List<EmuNode> nodes,
              DSPConfigDef dspConfig,
              List<EventGroup> eventGroups,
              List<UserClass> userClasses,
              Map map,
              List<Route> routes,
              String routeLibrary)
Method Detail

getNodes

public List<EmuNode> getNodes()

getDSPConfigDef

public DSPConfigDef getDSPConfigDef()

getEventGroups

public List<EventGroup> getEventGroups()

getUserClasses

public List<UserClass> getUserClasses()

getMap

public Map getMap()

getRoutes

public List<Route> getRoutes()

getRouteLibrary

public String getRouteLibrary()

fromXML

public static Config fromXML(Element el)
                      throws ConfigException
Create a new configuration from an XML source.

Parameters:
el - The XML element to populate the Config from.
Returns:
The new Config instance.
Throws:
ConfigException

toXML

public Element toXML(Document doc)
Create an XML representation of this class.

Parameters:
doc - The document used to create the node.
Returns:
The XML element representing this class.


Copyright © 2013. All Rights Reserved.