Gantt 2.3

com.ontimize.gantt.relations
Class RelationBuilderImp

java.lang.Object
  extended bycom.ontimize.gantt.relations.RelationBuilderImp
All Implemented Interfaces:
RelationBuilder

public class RelationBuilderImp
extends java.lang.Object
implements RelationBuilder

Class that manages the possible relations between Gantt tasks:

-Finish to Start
-Start to Start
-Finish to Finish
-Start to Finish

Author:
Imatia Innovation

Field Summary
static java.lang.String FF
          Finish to finish
protected  java.util.Hashtable filter
           
static java.lang.String FS
          Finish to start
protected  EntityReferenceLocator locator
           
static java.lang.String NO_RELATION
          No relation
protected  java.lang.String offset
           
protected  Entity relationEntity
           
protected  java.lang.String relationEntityName
           
protected  RelationPaintManager relationPaintManager
           
static java.lang.String SF
          Start to Finish
static java.lang.String SS
          Start to start
protected  java.lang.String type
           
protected  java.util.Vector vIdWP1
           
protected  java.util.Vector vIdWP2
           
protected  java.util.Vector vKeys
           
protected  java.util.Vector vKeysValues
           
protected  java.util.Vector vParentKeys
           
protected  java.util.Vector vParentKeysValues
           
 
Fields inherited from interface com.ontimize.gantt.relations.RelationBuilder
ENTITY, KEYS, KEYSWORKPACKAGE1, KEYSWORKPACKAGE2, OFFSET, PARENTKEYS, TYPE
 
Constructor Summary
RelationBuilderImp(java.util.Hashtable params)
           
 
Method Summary
 void clearFilter()
           
 EntityResult getData()
           
 java.lang.String getEntity()
           
 java.util.Hashtable getFilter()
           
 java.util.Vector getKeys()
           
 java.util.Vector getKeysWorkPackage1()
           
 java.util.Vector getKeysWorkPackage2()
           
 java.lang.String getOffset()
           
 java.util.Vector getParentKeys()
           
 EntityResult getRelationDataForTask(Task task)
           
 java.lang.String getType()
           
 java.util.Vector getVKeysValues()
           
 java.util.Vector getVParentKeysValues()
           
 void init(java.util.Hashtable hrelations)
           
 void setData(EntityResult res)
           
 void setFilter(java.util.Vector vKeysValues, java.util.Vector vParentKeysValues)
           
 void setRelation(EntityResult res)
           
 void setVKeysValues(java.util.Vector keysValues)
           
 void setVParentKeysValues(java.util.Vector parentKeysValues)
           
 java.util.Vector translateKeys(Task task)
           
 java.util.Vector translateParentKeys(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locator

protected EntityReferenceLocator locator

relationPaintManager

protected RelationPaintManager relationPaintManager

relationEntityName

protected java.lang.String relationEntityName

relationEntity

protected Entity relationEntity

vKeys

protected java.util.Vector vKeys

vParentKeys

protected java.util.Vector vParentKeys

offset

protected java.lang.String offset

vIdWP1

protected java.util.Vector vIdWP1

vIdWP2

protected java.util.Vector vIdWP2

type

protected java.lang.String type

filter

protected java.util.Hashtable filter

vParentKeysValues

protected java.util.Vector vParentKeysValues

vKeysValues

protected java.util.Vector vKeysValues

FS

public static final java.lang.String FS
Finish to start

See Also:
Constant Field Values

SS

public static final java.lang.String SS
Start to start

See Also:
Constant Field Values

FF

public static final java.lang.String FF
Finish to finish

See Also:
Constant Field Values

SF

public static final java.lang.String SF
Start to Finish

See Also:
Constant Field Values

NO_RELATION

public static final java.lang.String NO_RELATION
No relation

See Also:
Constant Field Values
Constructor Detail

RelationBuilderImp

public RelationBuilderImp(java.util.Hashtable params)
Method Detail

init

public void init(java.util.Hashtable hrelations)

getEntity

public java.lang.String getEntity()
Specified by:
getEntity in interface RelationBuilder

getKeys

public java.util.Vector getKeys()
Specified by:
getKeys in interface RelationBuilder

getKeysWorkPackage1

public java.util.Vector getKeysWorkPackage1()
Specified by:
getKeysWorkPackage1 in interface RelationBuilder

getKeysWorkPackage2

public java.util.Vector getKeysWorkPackage2()
Specified by:
getKeysWorkPackage2 in interface RelationBuilder

getOffset

public java.lang.String getOffset()
Specified by:
getOffset in interface RelationBuilder

getParentKeys

public java.util.Vector getParentKeys()
Specified by:
getParentKeys in interface RelationBuilder

getVParentKeysValues

public java.util.Vector getVParentKeysValues()

setVParentKeysValues

public void setVParentKeysValues(java.util.Vector parentKeysValues)
Specified by:
setVParentKeysValues in interface RelationBuilder

getVKeysValues

public java.util.Vector getVKeysValues()

setVKeysValues

public void setVKeysValues(java.util.Vector keysValues)

getData

public EntityResult getData()
Specified by:
getData in interface RelationBuilder

getRelationDataForTask

public EntityResult getRelationDataForTask(Task task)
Specified by:
getRelationDataForTask in interface RelationBuilder

setData

public void setData(EntityResult res)
Specified by:
setData in interface RelationBuilder

setRelation

public void setRelation(EntityResult res)
Specified by:
setRelation in interface RelationBuilder

setFilter

public void setFilter(java.util.Vector vKeysValues,
                      java.util.Vector vParentKeysValues)
Specified by:
setFilter in interface RelationBuilder

getFilter

public java.util.Hashtable getFilter()
Specified by:
getFilter in interface RelationBuilder

clearFilter

public void clearFilter()

getType

public java.lang.String getType()
Specified by:
getType in interface RelationBuilder

translateKeys

public java.util.Vector translateKeys(Task task)
Specified by:
translateKeys in interface RelationBuilder

translateParentKeys

public java.util.Vector translateParentKeys(Task task)
Specified by:
translateParentKeys in interface RelationBuilder

Gantt