Documentation of 'jas2.jds.module.LocalDIM' Java class
LocalDIM
jas2.jds.module

Interface LocalDIM

  • All Superinterfaces:
    AbstractDIM, java.io.Serializable
    All Known Subinterfaces:
    LocalDIM2
    All Known Implementing Classes:
    BasicLocalDIM, JHLocal, LocalFlatFileDIM, MultiFileLocalDIM, NoSetupLocalDIM, TestLocal


    public interface LocalDIM
    extends AbstractDIM, java.io.Serializable
    When a local job reads in data, it must use a local data interface module to generate an EventSource.
    • A class that implements this interface should override the toString() method. For example, the implementation jas2.jds.module.flatfileserver.LocalFlatFileDIM has the following method:
      public String toString()
      {
      return "Flat file";
      }
      Whatever toString() returns is displayed in the Local DIM registry, and appeard on the JComboBox where the user selects the LocalDIM to use.
    • The LocalDIM interface extends java.io.Serializable, so you must define a serializable class. This means that all objects refered to by member variables of your class will be serialized unless marked transient. Be aware that transient variables are null when the object is read from disk, so be sure to initialize them in a readObject() method.
    • To use a local DIM, you must add your class to the Local DIM registry.
    • Give a definition for the following method:
      public EventSource openDataSet(String name) throws ModuleException
      This method, inherited from the AbstractDIM interface, will be called after createJob() is called in the LocalJobBuilder. It must return an EventSource, which the application will use to access the events in your data set. See the documentation on defining an EventSource.
    • Method Detail

      • getSetupPage

        JASWizardPage getSetupPage()
        Return a setup page for the new job wizard to use when creating a job. See the documentation on defining pages.
      • setLocalJobBuilder

        void setLocalJobBuilder(LocalJobBuilder ljb)
        Copy over the given object to a member field for use later. When the user selects a DIM, the wizard invokes this method, thereby providing the DIM with access to the application's local job builder. That local job builder already knows which DIM to use and knows the job name, and can be used to create a new job when all setup (on the setup wizard page returned by getSetupPage()) is complete.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.