T
- the type of the timeline objectspublic class SimpleGranularityConstraint<T> extends AbstractConstraint<T,SimpleGranularity>
SimpleGranularity
type is used
in the dateline of the Gantt chart.Constructor and Description |
---|
SimpleGranularityConstraint(TimelineObjectPath<T> sourcePath,
TimelineObjectPath<T> targetPath)
Constructs a new constraint.
|
SimpleGranularityConstraint(TimelineObjectPath<T> sourcePath,
TimelineObjectPath<T> targetPath,
RelationshipType type)
Constructs a new constraint.
|
Modifier and Type | Method and Description |
---|---|
protected double |
getDelta(long time1,
long time2,
SimpleGranularity 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 SimpleGranularityConstraint(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 SimpleGranularityConstraint(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 time1, long time2, SimpleGranularity granularity)
getDelta
in class AbstractConstraint<T,SimpleGranularity>
time1
- the relevant time point of the first timeline object (might be
start or end time)time2
- 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–2016 Dirk Lemmermann Software & Consulting. All rights reserved.