Class AbstractSettings

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizix.actionactor.AbstractSettings
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, IActionActorSettings, Cloneable
Direct Known Subclasses:
AbstractPredefinedSettings, DatabaseActionActor.Settings, JavaActionActorBase.Settings, TerminalActionActor.Settings, WebServiceActionActor.Settings

public abstract class AbstractSettings extends PropCnr implements IActionActorSettings
Class extending the property container.
Author:
Christopher Mindus
  • Constructor Details

    • AbstractSettings

      public AbstractSettings()
      Creates the settings without name.
    • AbstractSettings

      public AbstractSettings(Atom propertyAtom)
      Creates the settings with specified name.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • clone

      public AbstractSettings clone()
      Creates a clone out of this property. The cloning is overridden by the subclasses in order to handle cloning of its class variables appropriately.
      Overrides:
      clone in class PropCnr
    • getActionActor

      public final IActionActor<?> getActionActor(VSAction action)
      Gets the actor implementation instance.
      Specified by:
      getActionActor in interface IActionActorSettings
      Parameters:
      action - The action instance.
      Returns:
      The action actor implementation.
    • doesModifyVirtualSpace

      public boolean doesModifyVirtualSpace(VSAction action)
      Checks if the VirtualSpace is modified by the Action Actor. Override this method to return the correct setting, default returns true.
      Parameters:
      action - The action in question, perhaps null. If the action is null, it is assumed that the actor could be connected to multiple actions and should therefore return the "worst" scenario, i.e. that it does modify the VS.
      Returns:
      true if any field in the VS is modified (excludes focus).
    • getDescription

      public String getDescription()
      Gets the description of this actor.
      Specified by:
      getDescription in interface IActionActorSettings
    • getVSAction

      public VSAction getVSAction()
      Gets the VS action owning these settings, i.e. being associated with the action actor.
      Returns:
      The VSAction in question.
    • createActor

      protected abstract IActionActor<? extends AbstractSettings> createActor(VSAction action)
      Create the instance of the action actor.
      Parameters:
      action - The action instance.
      Returns:
      The new action actor implementation instance.