Class GuiXMLReader

java.lang.Object
common.xml.GuiXMLReader
All Implemented Interfaces:
GuiXMLConstants

public class GuiXMLReader extends Object implements GuiXMLConstants

Title: Gui XML Reader

Description: Reads JModel GUI specific information from an XML file. This class provides methods for model load.

Author:
Bertoli Marco Date: 27-lug-2005 Time: 11.04.13
  • Constructor Details

    • GuiXMLReader

      public GuiXMLReader()
  • Method Details

    • parseXML

      public static void parseXML(Document xml, CommonModel model)
      Parses given Gui XML Document to reconstruct all gui related stuff. This method is designed to be called ONLY when all simulation's data has already been put into data structure (as will never create new user classes or stations)
      Parameters:
      xml - document to be parsed
      model - data model to be elaborated
    • parseXML

      public static void parseXML(Element root, CommonModel model)
      Parses given Gui XML Document to reconstruct all gui related stuff. This method is designed to be called ONLY when all simulation's data has already been put into data structure (as will never create new user classes or stations)
      Parameters:
      root - root element of Document to be parsed
      model - data model to be elaborated
    • setConnectionShapes

      protected static void setConnectionShapes(Element root, JSimGraphModel model)
      Sets gui specific connection shape parameters
      Parameters:
      root - GuiXML document root
      model - data structure where properties have to be set
    • setUserClasses

      protected static void setUserClasses(Element root, JSimGraphModel model)
      Sets gui specific user class parameters
      Parameters:
      root - GuiXML document root
      model - data structure where properties have to be set
    • setStations

      protected static void setStations(Element root, JSimGraphModel model)
      Sets gui specific station parameters
      Parameters:
      root - GuiXML document root
      model - data structure where properties have to be set
    • setParametricAnalysis

      protected static void setParametricAnalysis(Element root, CommonModel model)
      Sets gui specific parametric analysis parameters
      Parameters:
      root - GuiXML document root
      model - data structure where properties have to be set