Class Event

java.lang.Object
velo.ladaalpha.fields.life.Event

public class Event extends Object
The Class Event.
  • Constructor Details

    • Event

      public Event(String name, double frequencyInDays, double hourOfOccurance)
      Instantiates a new event.
      Parameters:
      name - the name
      frequencyInDays - the frequency in days
      hourOfOccurance - the hour of occurance
  • Method Details

    • isExclusion

      public boolean isExclusion()
      Checks if is exclusion.
      Returns:
      true, if is exclusion
    • getShift

      public double getShift()
      Gets the shift.
      Returns:
      the shift
    • setShift

      public void setShift(double shift)
      Sets the shift.
      Parameters:
      shift - the shift to set
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getName

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

      public void setName(String name)
      Sets the name.
      Parameters:
      name - the name to set
    • getEq

      public Equation getEq()
      Gets the eq.
      Returns:
      the eq
    • setEq

      public void setEq(Equation eq)
      Sets the eq.
      Parameters:
      eq - the eq to set
    • forward

      public double forward(double x)
      Forward.
      Parameters:
      x - the x
      Returns:
      the double
    • closestOccurance

      public double closestOccurance(double x)
      Closest occurance.
      Parameters:
      x - the x
      Returns:
      the double
    • getDay_freq

      public double getDay_freq()
      Gets the day freq.
      Returns:
      the day_freq
    • setDay_freq

      public void setDay_freq(double day_freq)
      Sets the day freq.
      Parameters:
      day_freq - the day_freq to set
    • getSigma

      public double getSigma()
      Gets the sigma.
      Returns:
      the sigma
    • setSigma

      public void setSigma(double sigma)
      Sets the sigma.
      Parameters:
      sigma - the sigma to set