public class ParseHardwarePlatform
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
ParseHardwarePlatform.ClusterInfo
Class to save scanned information about Cluster from the XML.
|
private class |
ParseHardwarePlatform.DmaInfo
Class to save scanned information about DMA from the XML.
|
private class |
ParseHardwarePlatform.LinkInfo
Class to save scanned information about Network Link from the XML.
|
private class |
ParseHardwarePlatform.MemoryInfo
Class to save scanned information about Memory from the XML.
|
private class |
ParseHardwarePlatform.PlatformProp
Class to save the properties of platform.
|
private class |
ParseHardwarePlatform.ProcessorInfo
Class to save scanned information about Processor from the XML.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<ParseHardwarePlatform.ClusterInfo> |
clusters
Scanned cluster nodes from XML.
|
private java.util.List<ParseHardwarePlatform.DmaInfo> |
dma
Scanned DMA nodes from XML.
|
private java.util.List<ParseHardwarePlatform.LinkInfo> |
links
Scanned network link nodes from XML.
|
private java.util.List<ParseHardwarePlatform.MemoryInfo> |
memory
Scanned memory nodes from XML.
|
private ParseHardwarePlatform.PlatformProp |
platformProperties
Scanned platform properties nodes from XML.
|
private java.util.List<ParseHardwarePlatform.ProcessorInfo> |
processors
Scanned processor nodes from XML.
|
Constructor and Description |
---|
ParseHardwarePlatform() |
Modifier and Type | Method and Description |
---|---|
private Platform |
parsePlatformGraph(org.w3c.dom.Element root)
Build the platform model from the XML file.
|
Platform |
parsePlatformXml(java.lang.String fileName)
Parse the platform XML file and build platform model.
|
private void |
processClusterNode(org.w3c.dom.Node root)
Process the Cluster node of XML file.
|
private void |
processDmaNode(org.w3c.dom.Node root)
Process DMA node of XML file.
|
private void |
processLinkNode(org.w3c.dom.Node root)
Process Network Link node of XML file.
|
private void |
processMemoryNode(org.w3c.dom.Node root)
Process Memory node of XML file.
|
private void |
processPlatformProperties(org.w3c.dom.Node node)
Scan platform properties node
|
private void |
processProcessorNode(org.w3c.dom.Node root)
Process the Processor node of XML file.
|
static void |
removeWhitespaceNodes(org.w3c.dom.Element e)
Remove the white spaces from XML nodes
|
private java.util.List<ParseHardwarePlatform.ClusterInfo> clusters
private java.util.List<ParseHardwarePlatform.ProcessorInfo> processors
private java.util.List<ParseHardwarePlatform.LinkInfo> links
private java.util.List<ParseHardwarePlatform.MemoryInfo> memory
private java.util.List<ParseHardwarePlatform.DmaInfo> dma
private ParseHardwarePlatform.PlatformProp platformProperties
public static void removeWhitespaceNodes(org.w3c.dom.Element e)
e
- root elementprivate Platform parsePlatformGraph(org.w3c.dom.Element root)
root
- XML root elementprivate void processPlatformProperties(org.w3c.dom.Node node)
node
- platform properties node from XML fileprivate void processDmaNode(org.w3c.dom.Node root)
root
- DMA node from XML fileprivate void processMemoryNode(org.w3c.dom.Node root)
root
- Memory node from XML fileprivate void processLinkNode(org.w3c.dom.Node root)
root
- Network link node from XML fileprivate void processProcessorNode(org.w3c.dom.Node root)
root
- Processor node from XML fileprivate void processClusterNode(org.w3c.dom.Node root)
root
- Cluster node from XML filepublic Platform parsePlatformXml(java.lang.String fileName)
fileName
- XML file of the platform to be scanned