edu.cmu.emulator.creator.config
Class Config
java.lang.Object
edu.cmu.emulator.creator.config.ConfigNode
edu.cmu.emulator.creator.config.Config
public class Config
- extends ConfigNode
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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.