Interface ConditionalNG_Manager

All Superinterfaces:
Manager<ConditionalNG>, PropertyChangeProvider, SilenceablePropertyChangeProvider, VetoableChangeProvider
All Known Implementing Classes:
DefaultConditionalNGManager

public interface ConditionalNG_Manager extends Manager<ConditionalNG>
Manager for ConditionalNG
  • Method Details

    • createConditionalNG

      Create a new ConditionalNG if the ConditionalNG does not exist.
      Parameters:
      logixNG - The parent LogixNG
      systemName - The system name
      userName - The user name
      Returns:
      a new ConditionalNG or null if unable to create
      Throws:
      IllegalArgumentException - when needed
    • createConditionalNG

      For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.
      Parameters:
      logixNG - The parent LogixNG
      userName - The user name
      Returns:
      a new ConditionalNG or null if unable to create
      Throws:
      IllegalArgumentException - when needed
    • createConditionalNG

      ConditionalNG createConditionalNG(LogixNG logixNG, String systemName, String userName, int threadID) throws IllegalArgumentException
      Create a new ConditionalNG if the ConditionalNG does not exist.
      Parameters:
      logixNG - The parent LogixNG
      systemName - The system name
      userName - The user name
      threadID - The thread ID that this ConditionalNG will execute on
      Returns:
      a new ConditionalNG or null if unable to create
      Throws:
      IllegalArgumentException - when needed
    • createConditionalNG

      ConditionalNG createConditionalNG(LogixNG logixNG, String userName, int threadID) throws IllegalArgumentException
      For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username.
      Parameters:
      logixNG - The parent LogixNG
      userName - The user name
      threadID - The thread ID that this ConditionalNG will execute on
      Returns:
      a new ConditionalNG or null if unable to create
      Throws:
      IllegalArgumentException - when needed
    • getConditionalNG

      Locate via user name using the LogixNG, then system name if needed. Does not create a new one if nothing found
      Parameters:
      logixNG - The LogixNG for the user name match. If null, only do a system name match.
      name - User name or system name to match
      Returns:
      null if no match found
    • getParentLogixNG

      Find the LogixNG which has the ConditionalNG system name in its ConditionalNG_Entry list.
      Parameters:
      systemName - The ConditionalNG system name.
      Returns:
      the parent LogixNG or null if none found.
    • getByUserName

      Find the ConditionalNG which is a member of the LogixNG with the supplied user name.
      Parameters:
      logixNG - The LogixNG that contains the requested ConditionalNG.
      name - The requested ConditionalNG user name.
      Returns:
      the ConditionalNG or null if none found.
    • getByUserName

      Locate an existing instance based on a user name.
      Specified by:
      getByUserName in interface Manager<ConditionalNG>
      Parameters:
      name - System Name of the required NamedBean
      Returns:
      requested NamedBean object or null if none exists
    • getBySystemName

      Locate an existing instance based on a system name.
      Specified by:
      getBySystemName in interface Manager<ConditionalNG>
      Parameters:
      name - System Name of the required NamedBean
      Returns:
      requested NamedBean object or null if none exists
    • getSubSystemNamePrefix

      Get the sub system prefix of this manager. The sub system prefix is the system name prefix and possibly some extra characters of the NamedBeans handled by this manager.

      For most managers, this is the same as Manager.getSystemNamePrefix(), but for some like the managers in LogixNG, it differs. The sub system prefix for the ConditionalNG_Manager is Manager.getSystemNamePrefix() and "C";

      Specified by:
      getSubSystemNamePrefix in interface Manager<ConditionalNG>
      Returns:
      the sub system prefix
    • getAutoSystemName

      Create a new system name for a ConditionalNG.
      Returns:
      a new system name
    • deleteConditionalNG

      Delete ConditionalNG by removing it from the manager. The ConditionalNG must first be deactivated so it stops processing.
      Parameters:
      x - the ConditionalNG to delete
    • setLoadDisabled

      void setLoadDisabled(boolean s)
      Support for loading ConditionalNGs in a disabled state
      Parameters:
      s - true if ConditionalNG should be disabled when loaded
    • setRunOnGUIDelayed

      void setRunOnGUIDelayed(boolean value)
      Set whenether execute() should run on the GUI thread at once or should dispatch the call until later, for all ConditionalNGs registered in this manager. Most tests turns off the delay to simplify the tests.
      Parameters:
      value - true if execute() should run on GUI thread delayed, false otherwise.