Package jmt.engine.log

Examples of jmt.engine.log.LoggerParameters


    Element elem = doc.createElement(XML_E_STATION_SECTION);
    elem.setAttribute(XML_A_STATION_SECTION_CLASSNAME, CLASSNAME_LOGGER);
    nodeNode.appendChild(elem);

    // Get this station's logger parameters
    LoggerParameters loggerParameters = (LoggerParameters) model
        .getLoggingParameters(stationKey);

    XMLParameter name = new XMLParameter(XML_LOG_FILENAME,
        "java.lang.String", null, loggerParameters.name.toString(),
        false);
    name.appendParameterElement(doc, elem);
    loggerParameters.path = MacroReplacer.replace(model.getLoggingGlbParameter("path")); // temporary
                                    // fix
    XMLParameter path = new XMLParameter(XML_LOG_FILEPATH,
        "java.lang.String", null,
        loggerParameters.getpath().toString(), false);
    path.appendParameterElement(doc, elem);
    XMLParameter logExecTimestamp = new XMLParameter(
        XML_LOG_B_EXECTIMESTAMP, "java.lang.Boolean", null,
        loggerParameters.boolExecTimestamp.toString(), false);
    logExecTimestamp.appendParameterElement(doc, elem);
View Full Code Here


  public Object getLoggingParameters(Object stationKey) {
    Object loggerParams = null;

    if (stationDataHM.containsKey(stationKey)) {
      StationData sd = (StationData) stationDataHM.get(stationKey);
      loggerParams = (sd.loggerParameters != null) ? sd.loggerParameters : new LoggerParameters();
    } else {
      return null;
    }
    return loggerParams;
  }
View Full Code Here

    int size = 0;
    boolean globalWasProcessed = false;

    // get the list of all filenames from their keys
    for (int i = 0; i < loggerkeyssize; i++) {
      LoggerParameters lp = (LoggerParameters) getLoggingParameters(loggerkeys.get(i));
      if (lp.name.equalsIgnoreCase("global") == false) {
        lknames[size++] = lp.name;
      } else if ((lp.name.equalsIgnoreCase("global") == true) && (globalWasProcessed == false)) {
        globalWasProcessed = true;
        lknames[size++] = lp.name;
View Full Code Here

   * @see jmt.gui.common.definitions.CommonModel#setLoggingParameters CommonModel.setLoggingParameters()
   * @see jmt.engine.NodeSections.LogTunnel LogTunnel
   */
  protected static void parseLogger(Element section, CommonModel model, Object key) {
    NodeList parameters = section.getElementsByTagName(XML_E_PARAMETER);
    LoggerParameters logParams = new LoggerParameters();

    for (int i = 0; i < parameters.getLength(); i++) {
      Element parameter = (Element) parameters.item(i);
      String parameterName = parameter.getAttribute(XML_A_PARAMETER_NAME);
      try {
View Full Code Here

   *  Creates a new instance of LogTunnel; called by simulator engine.
   */
  public LogTunnel(String argFN, String argFP, Boolean argET, Boolean argBLN, Boolean argBTS, Boolean argBJID, Boolean argBJC, Boolean argBTSC,
      Boolean argBTAC, Integer numClasses) {
    /* Create an object to hold the Logger's parameters, with parameters from XMLReader */
    lp = new LoggerParameters(argET, argFN, argFP, argBLN, argBTS, argBJID, argBJC, argBTSC, argBTAC);
  }
View Full Code Here

TOP

Related Classes of jmt.engine.log.LoggerParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.