SourceForge.net Logo

EWSD Console


Copyright (C) 2006, 2008 Eugene Prokopiev

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.



EWSD Console can be used to execute MML tasks for EWSD digital switching system. Prerequests for EWSD Console includes:
Download:
After extracting from archive you can run it with startup.sh, startup.bat or statup-debug.bat depending on operation system.

EWSD Console intensely use XML format for storing configuration data, so it's recommended to use any XML-enabled text editor with folding and syntax highlighting (SciTE for example).

Every connection to FOS Gateway must be described in config.xml in such way:

config.xml

After running EWSD Console you can select connection and use existing connection parameters or modify them:

connection 

Main EWSD Console window looks like this:

main window

Commands must be entered in Task panel. All tasks will be displayed in Task List panel. Every task can have two or more results which will be displayed in Results List panel. Every result have text content which will be seen in Detail panel on Raw Details page.

You can define how to parse some results in types.xml file:

types configuration

In this file any result can by classified as type with:
XPath expressions support is implemented with JXPath library, so it's possible to use Java objects and methods in expressions.

Instead of standart MML commands you can use this special modification to display results in in Parsed Results List panel:

<mml command>;<criteria>;<fields={displayed fields list}>

XPath expressions operating with result type and result fields or empty space can be used as criteria. Displayed fields list must be separated by ','. Simple example was shown in picture with main EWSD Console window.

Because such commands can be very long it's possible run it from MacroCommands dialog:

MacroCommands

Before using commands must be defined in commands.xml file:

commands configuration

Every command must have:
It's possible to shedule MacroCommand executing with optional delay and period.

It's also possible to save every table to CSV format from EWSD Console.



FOS Client Library


Copyright (C) 2006, 2008 Eugene Prokopiev

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.



All FOS-specific logic is placed into a separate library fosclientlib.jar, which is licensed under LGPL. This library can be used in other Java applications that need to communicate with FOS Gateway.

Download:
Simple communication example looks like:

public class EWSDTest {
    public static void main(String[] args) {       
        EWSDConnection connection = new EWSDConnection();       
        try {
            connection.connect("192.168.100.1", 4568);
            connection.login("NETM1","Administrator","password#1");
            connection.select("NetM Administrators","TX1");
            connection.addConnectionListener(new IEWSDConnectionListener() {
                public void fireReadTask(EWSDTask task) {
                    System.out.println("fireReadTask : "+task);
                }
                public void fireReadTaskResult(EWSDTaskResult result) {   
                    System.out.println("fireReadTaskResult : "+result);
                }               
            });
            connection.execute("disptime");
            Thread.sleep(2000);
            for(EWSDTask task : connection.getTasks()) {
                System.out.println("Task : "+task);
                for(EWSDTaskResult result : task.getResults()) {
                    System.out.println("Result : "+result);
                }
            }
            connection.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
       
    }

}

For more info see javadoc.