Class Behavior

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

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

    • Behavior

      public Behavior(String name, double frequencyInDays, double timeOfDay)
      Instantiates a new behavior.
      Parameters:
      name - the name
      frequencyInDays - the frequency in days
      timeOfDay - the time of day
    • Behavior

      public Behavior(String name, double frequencyInDays, double startTime, double endTime)
      Instantiates a new behavior.
      Parameters:
      name - the name
      frequencyInDays - the frequency in days
      startTime - the start time
      endTime - the end time
  • Method Details

    • exludeWeekend

      public Behavior exludeWeekend()
      Exlude weekend.
      Returns:
      the behavior
    • even

      public Behavior even()
      Even.
      Returns:
      the behavior
    • getEvents

      public Event[] getEvents()
      Gets the events.
      Returns:
      the events
    • getFrequencyInDays

      public double getFrequencyInDays()
      Gets the frequency in days.
      Returns:
      the frequencyInDays
    • setFrequencyInDays

      public void setFrequencyInDays(double frequencyInDays)
      Sets the frequency in days.
      Parameters:
      frequencyInDays - the frequencyInDays to set
    • getStartTime

      public double getStartTime()
      Gets the start time.
      Returns:
      the startTime
    • setStartTime

      public void setStartTime(double startTime)
      Sets the start time.
      Parameters:
      startTime - the startTime to set
    • getEndTime

      public double getEndTime()
      Gets the end time.
      Returns:
      the endTime
    • setEndTime

      public void setEndTime(double endTime)
      Sets the end time.
      Parameters:
      endTime - the endTime to set
    • getTimeOfDay

      public double getTimeOfDay()
      Gets the time of day.
      Returns:
      the timeOfDay
    • setTimeOfDay

      public void setTimeOfDay(double timeOfDay)
      Sets the time of day.
      Parameters:
      timeOfDay - the timeOfDay to set