public class LatentStateMergeSubStretch
extends java.lang.Object
| Constructor and Description |
|---|
LatentStateMergeSubStretch(double dblStartDate,
double dblEndDate,
LatentStateLabel lsl)
LatentStateMergeSubStretch constructor
|
| Modifier and Type | Method and Description |
|---|---|
LatentStateMergeSubStretch |
coalesce(LatentStateMergeSubStretch lsmlOther)
Coalesce the supplied Merge Stretch with the current one (if possible) to create a new Merge Stretch
|
double |
end()
Retrieve the Merge Stretch End Date
|
boolean |
in(double dblDate)
Indicate whether the specified Date is "inside" the Stretch Range.
|
boolean |
indexMatch(LatentStateMergeSubStretch lsmsOther)
Indicate whether Specified Merge Stretch's Label matches with the current one
|
LatentStateLabel |
label()
Retrieve the Latent State Label
|
boolean |
overlap(LatentStateMergeSubStretch lsmlOther)
Identify if the Supplied Merge Stretch overlaps with the provided one.
|
boolean |
shiftEnd(double dblNewEndDate)
Shift/Adjust the End Date
|
boolean |
shiftStart(double dblNewStartDate)
Shift/Adjust the Start Date
|
double |
start()
Retrieve the Merge Stretch Start Date
|
public LatentStateMergeSubStretch(double dblStartDate,
double dblEndDate,
LatentStateLabel lsl)
throws java.lang.Exception
dblStartDate - Merge Stretch Start DatedblEndDate - Merge Stretch End Datelsl - The Latent State Labeljava.lang.Exception - Thrown if Inputs are invalidpublic double start()
public boolean shiftStart(double dblNewStartDate)
dblNewStartDate - The new Date to be Shifted topublic double end()
public boolean shiftEnd(double dblNewEndDate)
dblNewEndDate - The new Date to be Shifted topublic LatentStateLabel label()
public boolean indexMatch(LatentStateMergeSubStretch lsmsOther)
lsmsOther - The Supplied Merge Stretchpublic boolean in(double dblDate)
dblDate - Date whose "inside"ness is asked forpublic boolean overlap(LatentStateMergeSubStretch lsmlOther)
lsmlOther - The Supplied Merge Stretchpublic LatentStateMergeSubStretch coalesce(LatentStateMergeSubStretch lsmlOther)
lsmlOther - The Supplied Merge Stretch