程序包 weka.gui.beans

类 KnowledgeFlowApp

所有已实现的接口:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible

public class KnowledgeFlowApp extends JPanel implements PropertyChangeListener
Main GUI class for the KnowledgeFlow. Modifications to allow interoperability with swt provided by Davide Zerbetto (davide dot zerbetto at eng dot it).
从以下版本开始:
1.0
版本:
$Revision: 9495 $
作者:
Mark Hall
另请参阅:
  • 字段详细资料

    • FILE_EXTENSION

      public static final String FILE_EXTENSION
      the extension for the serialized setups (Java serialization)
      另请参阅:
    • FILE_EXTENSION_XML

      public static final String FILE_EXTENSION_XML
      the extension for the serialized setups (Java serialization)
      另请参阅:
    • s_startupListeners

      public static Vector s_startupListeners
  • 构造器详细资料

    • KnowledgeFlowApp

      public KnowledgeFlowApp(boolean showFileMenu)
      Creates a new KnowledgeFlowApp instance.
  • 方法详细资料

    • loadProperties

      public static void loadProperties()
      Loads KnowledgeFlow properties and any plugins (adds jars to the classpath)
    • setEnvironment

      public void setEnvironment(Environment env)
      Set the environment variables to use. NOTE: loading a new layout resets back to the default set of variables
      参数:
      env -
    • clearLayout

      public void clearLayout()
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Accept property change events
      指定者:
      propertyChange 在接口中 PropertyChangeListener
      参数:
      e - a PropertyChangeEvent value
    • setFlow

      public void setFlow(Vector v) throws Exception
      Set the flow for the KnowledgeFlow to edit. Assumes that client has loaded a Vector of beans and a Vector of connections. the supplied beans and connections are deep-copied via serialization before being set in the layout.
      参数:
      v - a Vector containing a Vector of beans and a Vector of connections
      抛出:
      Exception - if something goes wrong
    • getFlow

      public Vector getFlow() throws Exception
      Gets the current flow being edited. The flow is returned as a single Vector containing two other Vectors: the beans and the connections. These two vectors are deep-copied via serialization before being returned.
      返回:
      the current flow being edited
      抛出:
      Exception
    • saveLayout

      public void saveLayout(OutputStream out)
      Save the knowledge flow into the OutputStream passed at input. Only supports saving the layout data (no trained models) to XML.
      参数:
      out - the output stream to save the layout in
    • getGlobalInfo

      public static String getGlobalInfo(Object tempBean)
      Utility method for grabbing the global info help (if it exists) from an arbitrary object
      参数:
      tempBean - the object to grab global info from
      返回:
      the global help info or null if global info does not exist
    • createSingleton

      public static void createSingleton(String[] args)
      Create the singleton instance of the KnowledgeFlow
      参数:
      args - can contain a file argument for loading a flow layout (format: "file=[path to layout file]") Modified by Zerbetto: you can specify the path of a knowledge flow layout file at input
    • getSingleton

      public static KnowledgeFlowApp getSingleton()
      Return the singleton instance of the KnowledgeFlow
      返回:
      the singleton instance
    • addStartupListener

      public static void addStartupListener(StartUpListener s)
      Add a listener to be notified when startup is complete
      参数:
      s - a listener to add
    • loadInitialLayout

      public void loadInitialLayout(String fileName)
      Loads the specified file at input Added by Zerbetto
    • main

      public static void main(String[] args)
      Main method.
      参数:
      args - a String[] value