Package velo.ladaalpha.fields.life
Class Behavior
java.lang.Object
velo.ladaalpha.fields.life.Behavior
The Class Behavior.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioneven()Even.Exlude weekend.doubleGets the end time.Event[]Gets the events.doubleGets the frequency in days.doubleGets the start time.doubleGets the time of day.voidsetEndTime(double endTime) Sets the end time.voidsetFrequencyInDays(double frequencyInDays) Sets the frequency in days.voidsetStartTime(double startTime) Sets the start time.voidsetTimeOfDay(double timeOfDay) Sets the time of day. 
- 
Constructor Details
- 
Behavior
Instantiates a new behavior.- Parameters:
 name- the namefrequencyInDays- the frequency in daystimeOfDay- the time of day
 - 
Behavior
Instantiates a new behavior.- Parameters:
 name- the namefrequencyInDays- the frequency in daysstartTime- the start timeendTime- the end time
 
 - 
 - 
Method Details
- 
exludeWeekend
Exlude weekend.- Returns:
 - the behavior
 
 - 
even
Even.- Returns:
 - the behavior
 
 - 
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
 
 -