Interface ModuleIF

All Known Implementing Classes:
Module

public interface ModuleIF
INTERNAL: Implemented by an object which represents a module. That is a collection of functions. The module is read in from a location specified by an URL.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a function to this module.
    void
    Removes all existing functions.
    Gets a collection of FunctionIF objects that are contained in this module.
    Gets the URL from where this module was read in.
    boolean
    Checks if the resource has changed in the meantime by comparing the lastModified fields.
    void
    Reads in functions contained in module from resource.
    Returns a string representation of this object.
  • Method Details

    • getURL

      URL getURL()
      Gets the URL from where this module was read in.
    • hasResourceChanged

      boolean hasResourceChanged()
      Checks if the resource has changed in the meantime by comparing the lastModified fields.
    • readIn

      void readIn() throws NavigatorRuntimeException
      Reads in functions contained in module from resource.
      Throws:
      NavigatorRuntimeException
    • clearFunctions

      void clearFunctions()
      Removes all existing functions.
    • getFunctions

      Collection getFunctions()
      Gets a collection of FunctionIF objects that are contained in this module.
      See Also:
    • addFunction

      void addFunction(FunctionIF func)
      Adds a function to this module.
    • toString

      String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object