com.ericsson.tic.vi
Class XMLInterface

java.lang.Object
  extended by com.ericsson.tic.vi.XMLInterface

public class XMLInterface
extends Object

Reads and parses the XML file used during startup.

Version:
1.0 (2008-12-04)
Author:
Sami Matilainen

Field Summary
static boolean barShadingOn
           
static boolean betterLightingOn
           
static float[][][][] categoriesCategoryCategoryItemColor
           
static String[][] categoriesCategoryCategoryItemName
           
static String[][] categoriesCategoryCategoryItemParseName
           
static int[] categoriesCategoryDatabaseTableID
           
static int[] categoriesCategoryId
           
static String[] categoriesCategoryName
           
static int[] commandsCommandId
           
static String[] commandsCommandMessage
           
static String[] commandsCommandMessagePrefix
           
static String[] commandsCommandName
           
static int[] dataDataSetCat
           
static float[][][] dataDataSetColor
           
static int[] dataDataSetDimension
           
static int[] dataDataSetId
           
static int[] dataDataSetMax
           
static int[] dataDataSetMin
           
static String[] dataDataSetName
           
static int[] dataDataSetNodeType
           
static int[] dataDataSetParseStrat
           
static String[] dataDataSetPName
           
static int[] dataDataSetSet
           
static int defaultBarType
           
static int defaultValue
           
static boolean fogOn
           
static String inputPort
           
static String keepAliveHost
           
static String keepAlivePort
           
static boolean lineAAOn
           
static String masterHost
           
static String masterPort
           
static boolean nodeShadingOn
           
static boolean skyboxOn
           
static int TICA
           
static int TICC
           
static int timeOut
           
static String topologyFileName
           
static int[] topologyNodeTypeId
           
static int[] topologyNodeTypeLevel
           
static String[] topologyNodeTypeName
           
static float[][] topologyNodeTypeNullColor
           
static int totalCategories
           
static int[] totalCategoryItems
           
static int totalCommands
           
static int totalData
           
static int totalNodeTypes
           
static String windowTitle
           
 
Constructor Summary
XMLInterface()
           
 
Method Summary
private static Node[] getChildren(Node n)
           
private static Node[] getChildrenWithName(Node[] l, String name)
           
private static Node[] getChildrenWithName(Node n, String name)
           
private static float[] getColor(Node colors)
           
private static float[][] getColors(Node colors)
           
private static String getValue(Node n)
           
private static void printChildren(Node n)
           
private static void printElement(Node n)
           
private static void readCategories(Node[] node)
           
private static void readCommands(Node[] node)
           
static void readConfiguration()
          Reads the xml file.
private static void readData(Node[] node)
           
private static void readDatabase(Node[] db)
           
private static void readDocument(Document doc)
           
private static void readInit(Node[] node)
           
private static void readTopology(Node[] node)
           
private static Node[] stripTextNodes(NodeList l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalData

public static int totalData

totalCategories

public static int totalCategories

totalNodeTypes

public static int totalNodeTypes

totalCategoryItems

public static int[] totalCategoryItems

totalCommands

public static int totalCommands

dataDataSetId

public static int[] dataDataSetId

dataDataSetName

public static String[] dataDataSetName

dataDataSetPName

public static String[] dataDataSetPName

dataDataSetSet

public static int[] dataDataSetSet

dataDataSetCat

public static int[] dataDataSetCat

dataDataSetParseStrat

public static int[] dataDataSetParseStrat

dataDataSetDimension

public static int[] dataDataSetDimension

dataDataSetNodeType

public static int[] dataDataSetNodeType

dataDataSetMax

public static int[] dataDataSetMax

dataDataSetMin

public static int[] dataDataSetMin

dataDataSetColor

public static float[][][] dataDataSetColor

categoriesCategoryId

public static int[] categoriesCategoryId

categoriesCategoryName

public static String[] categoriesCategoryName

categoriesCategoryDatabaseTableID

public static int[] categoriesCategoryDatabaseTableID

categoriesCategoryCategoryItemName

public static String[][] categoriesCategoryCategoryItemName

categoriesCategoryCategoryItemParseName

public static String[][] categoriesCategoryCategoryItemParseName

categoriesCategoryCategoryItemColor

public static float[][][][] categoriesCategoryCategoryItemColor

commandsCommandId

public static int[] commandsCommandId

commandsCommandName

public static String[] commandsCommandName

commandsCommandMessagePrefix

public static String[] commandsCommandMessagePrefix

commandsCommandMessage

public static String[] commandsCommandMessage

windowTitle

public static String windowTitle

masterHost

public static String masterHost

masterPort

public static String masterPort

keepAliveHost

public static String keepAliveHost

keepAlivePort

public static String keepAlivePort

inputPort

public static String inputPort

timeOut

public static int timeOut

defaultValue

public static int defaultValue

defaultBarType

public static int defaultBarType

betterLightingOn

public static boolean betterLightingOn

fogOn

public static boolean fogOn

barShadingOn

public static boolean barShadingOn

nodeShadingOn

public static boolean nodeShadingOn

lineAAOn

public static boolean lineAAOn

skyboxOn

public static boolean skyboxOn

TICC

public static int TICC

TICA

public static int TICA

topologyFileName

public static String topologyFileName

topologyNodeTypeId

public static int[] topologyNodeTypeId

topologyNodeTypeName

public static String[] topologyNodeTypeName

topologyNodeTypeLevel

public static int[] topologyNodeTypeLevel

topologyNodeTypeNullColor

public static float[][] topologyNodeTypeNullColor
Constructor Detail

XMLInterface

public XMLInterface()
Method Detail

readConfiguration

public static void readConfiguration()
Reads the xml file.


readDocument

private static void readDocument(Document doc)

readTopology

private static void readTopology(Node[] node)

readInit

private static void readInit(Node[] node)

readCommands

private static void readCommands(Node[] node)

readCategories

private static void readCategories(Node[] node)

readData

private static void readData(Node[] node)

getColor

private static float[] getColor(Node colors)

getColors

private static float[][] getColors(Node colors)

printChildren

private static void printChildren(Node n)

printElement

private static void printElement(Node n)

getValue

private static String getValue(Node n)

getChildren

private static Node[] getChildren(Node n)

getChildrenWithName

private static Node[] getChildrenWithName(Node n,
                                          String name)

getChildrenWithName

private static Node[] getChildrenWithName(Node[] l,
                                          String name)

stripTextNodes

private static Node[] stripTextNodes(NodeList l)

readDatabase

private static void readDatabase(Node[] db)