public class FixedDelaySequence extends java.lang.Object implements TimeSequence
TimeSequence interface for fixed-delay Rule triggers.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
FixedDelaySequence()
Mandatory for the
Externalizable instances empty constructor. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getEndTime() |
int |
getPeriod() |
java.util.Date |
getStartTime() |
java.lang.String |
getTextRepresentation()
Implements the text representation of this time sequence.
|
java.lang.String |
getType()
Returns the TimeConstraint implementation type:
TYPE. |
static void |
main(java.lang.String[] args) |
void |
readObject(java.io.InputStream iStream)
Serialization method.
|
FixedDelaySequence |
setEndTime(java.util.Date endTime)
Sets end time for the time sequence, i.e., the time at which the Rule having this timer trigger will stop being fired.
|
FixedDelaySequence |
setPeriod(int periodInSeconds)
Sets time sequence period, i.e., regular interval at which the Rule having this timer trigger will be fired.
|
FixedDelaySequence |
setStartTime(java.util.Date startTime)
Sets start time for the time sequence, i.e., the time at which the Rule having this timer trigger will be fired for first time.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream oStream)
Serialization method.
|
public static final java.lang.String TYPE
public FixedDelaySequence()
Externalizable instances empty constructor.public FixedDelaySequence setStartTime(java.util.Date startTime)
startTime - start time.FixedDelaySequence object having the changes applied.public FixedDelaySequence setEndTime(java.util.Date endTime)
endTime - start time.FixedDelaySequence object having the changes applied.public FixedDelaySequence setPeriod(int periodInSeconds)
periodInSeconds - period in seconds.FixedDelaySequence object having the changes applied.public void readObject(java.io.InputStream iStream)
throws java.lang.Exception
readObject in interface ExternalizableiStream - input stream.java.lang.Exception - if serialization error appears.public void writeObject(java.io.OutputStream oStream)
throws java.lang.Exception
writeObject in interface ExternalizableoStream - input stream.java.lang.Exception - if serialization error appears.public java.lang.String getType()
TYPE.getType in interface TimeSequencepublic java.lang.String getTextRepresentation()
getTextRepresentation in interface TimeSequencepublic java.util.Date getStartTime()
public java.util.Date getEndTime()
public int getPeriod()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.