T
- the type of the timeline objectspublic class TimeGranularityConstraint<T> extends AbstractConstraint<T,TimeGranularity>
TimeGranularity
type is used
in the dateline of the Gantt chart.Constructor and Description |
---|
TimeGranularityConstraint(TimelineObjectPath<T> sourcePath,
TimelineObjectPath<T> targetPath)
Constructs a new constraint.
|
TimeGranularityConstraint(TimelineObjectPath<T> sourcePath,
TimelineObjectPath<T> targetPath,
RelationshipType type)
Constructs a new constraint.
|
Modifier and Type | Method and Description |
---|---|
protected double |
getDelta(long s,
long e,
TimeGranularity granularity)
Calculates the delta between the two given time points.
|
getBufferDuration, getBufferGranularity, getBufferType, getConstraintType, getViolation, setBufferDuration, setBufferGranularity, setBufferType, setConstraintType, toString
getLabel, getPopupObject, getPopupTitleObject, getSourcePath, getTargetPath, getType, isDeletable, isSelectable, setDeletable, setLabel, setPopupObject, setPopupTitleObject, setSelectable, setSourcePath, setTargetPath, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLabel, getPopupObject, getPopupTitleObject, getSourcePath, getTargetPath, getType, isDeletable, isSelectable, setSourcePath, setTargetPath, setType
public TimeGranularityConstraint(TimelineObjectPath<T> sourcePath, TimelineObjectPath<T> targetPath)
sourcePath
- the path to the source timeline object (timeline object 1)targetPath
- the path to the target timeline object (timeline object 2)public TimeGranularityConstraint(TimelineObjectPath<T> sourcePath, TimelineObjectPath<T> targetPath, RelationshipType type)
sourcePath
- the path to the source timeline object (timeline object 1)targetPath
- the path to the target timeline object (timeline object 2)type
- the relationship type (S-S, S-E, E-S, E-E)protected double getDelta(long s, long e, TimeGranularity granularity)
getDelta
in class AbstractConstraint<T,TimeGranularity>
s
- the relevant time point of the first timeline object (might be
start or end time)e
- the relevant time point of the second timeline object (might
be start or end time)granularity
- the time granularity (e.g. HOURS, DAYS, ...)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.