Class OrderTrigger

java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.OrderTrigger
Direct Known Subclasses:
DataDrivenOrderTrigger, MissionPlanningOrderTrigger, TimerOrderTrigger

@MappedSuperclass public abstract class OrderTrigger extends PersistentObject
Base class for all order generation triggers
Since:
prosEO 2.1.0
Author:
Dr. Thomas Bassler
  • Constructor Details

    • OrderTrigger

      public OrderTrigger()
  • Method Details

    • getMission

      public Mission getMission()
      Gets the mission this trigger belongs to
      Returns:
      the mission
    • setMission

      public void setMission(Mission mission)
      Sets the mission this trigger belongs to
      Parameters:
      mission - the mission to set
    • getName

      public String getName()
      Gets the trigger name
      Returns:
      the trigger name
    • setName

      public void setName(String name)
      Sets the trigger name
      Parameters:
      name - the trigger name to set
    • getEnabled

      public Boolean getEnabled()
      Gets the status of the "enabled" flag
      Returns:
      the enabled flag
    • isEnabled

      public Boolean isEnabled()
      Indicates, whether the workflow is available for use
      Returns:
      the enabled flag
    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets the status of the "enabled" flag
      Parameters:
      enabled - the status of the enabled flag to set
    • getOrderTemplate

      public OrderTemplate getOrderTemplate()
      Gets the associated order template
      Returns:
      the order template
    • setOrderTemplate

      public void setOrderTemplate(OrderTemplate orderTemplate)
      Sets the associated order template
      Parameters:
      orderTemplate - the order template to set
    • getExecutionDelay

      public Duration getExecutionDelay()
      Gets the processing order execution delay relative to the trigger firing time
      Returns:
      the order execution delay
    • setExecutionDelay

      public void setExecutionDelay(Duration executionDelay)
      Sets the processing order execution delay relative to the trigger firing time
      Parameters:
      executionDelay - the order execution delay to set
    • getPriority

      public Integer getPriority()
      Gets the processing order execution priority
      Returns:
      the order execution priority
    • setPriority

      public void setPriority(Integer priority)
      Sets the processing order execution priority
      Parameters:
      priority - the order execution priority to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PersistentObject
    • equals

      public boolean equals(Object obj)
      Description copied from class: PersistentObject
      Test equality of persistent objects based on their unique ID.
      Overrides:
      equals in class PersistentObject
      Parameters:
      obj - the object to compare this object to
      Returns:
      true, if obj is a persistent object and has the same ID, false otherwise
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object