White Papers

Jentchina filters tree data structure

What we need

GtkJentchina

GtkJentchina will be the user interface build on top of Jentchina using the GTK GUI toolkit. We should construct our API with in mind that the next step will be GtkJentchina. But we can imagine other layer than GtkJentchina (Curses-console, QT, Win32, ...)

So we should provide a maximum of functionalities that could be shared by all the over layer and that could be built without being dependant of one of those

GtkJentchina Versus Jentchina

Jentchina should be complete. GtkJentchina should be simple for a massive use by all the developpers over the world.

Sample Jentchina API

GtkJentchina

  • new(String appName):GtkJentchina

    Creates a new GtkJentchina Object

  • run()

    Mainly calls the Jentchina run methods (which launch the detection of new servers)

  • applyFilter( FilterType filterType={IMPORT, EXPORT}, String filterPattern, LsmTree inDoc, LsmTree out_outDoc): Status

    inDoc contains the document to be filtered, it should be a LsmTree. Shows a filter selection dialog and once the filter has been chosen, apply this filter : Search the interfaces, show them, ask the user to filled them, ... The output LsmTree will be set. Status, can be : Cancelled (Cancelled by user), Error, Success. filterPattern (TODO later) may be something like this "/Microsoft/Word/97/*". It will be usefull for importation, if the application has code for detecting the nature of the document to be filtered.

GtkJentchina filter selection dialog