|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.fopps.model.AbstractItem
|
+--org.fopps.model.ProjectItem
ProjectItem is the base class for all project entries. It provides informations regarding time, status and contains relations to other projects.
| Field Summary | |
static double |
DEFAULT_CAPACITY
|
static int |
DEFAULT_DURATION
|
| Fields inherited from class org.fopps.model.AbstractItem |
ADDED_EVENT, CHANGE_EVENT, name, REMOVED_EVENT |
| Constructor Summary | |
ProjectItem(java.lang.String name)
Constructor |
|
ProjectItem(java.lang.String name,
int start,
int end)
Constructor |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this instance including listeners |
protected AbstractItem |
copyAttributes(AbstractItem pItem)
Copy all attributes into a given instance |
void |
delete()
Drops project item |
void |
extendEnd(int pDelta)
|
void |
extendStart(int pDelta)
|
void |
fixTimimg()
Same as fixTiming(0, false). |
void |
fixTimimg(int pTimeBuffer,
boolean pDoNotSucessors)
Shifts this project in a way that the project starts not until all previous tasks are finished. |
ProjectContainer |
getContainer()
Getter of association Container |
java.util.Collection |
getDependendProjects()
Returns all dependend projects |
int |
getDuration()
Returns the duration of the project |
int |
getEnd()
Returns the end (counted in months from the start year of the container) of the project |
Feature |
getRootFeature()
Returns the root feature of the project. |
int |
getStart()
Returns the start of the project, counted from the start year of the project in months. |
ProjectStatus |
getStatus()
Returns the current status of the project |
java.util.Collection |
getSuppliedProjects()
Returns all supplied projects |
int |
getTotalDuration()
Returns the total duration of the project (including the duration of subsequent projects) |
void |
modelChanged(ModelEvent ev)
Invoked on model changes. |
void |
move(int pDelta)
|
void |
setContainer(ProjectContainer pContainer)
Setter of association Container |
void |
setDescription(java.lang.String pDescription)
Sets a new project description. |
void |
setEnd(int pEnd)
Sets a new value for end. |
void |
setName(java.lang.String pName)
Sets the new name of the project and the root feature |
void |
setRootFeature(Feature pRootFeature)
Sets the root feature. |
void |
setStart(int pStart)
Sets a new value for start. |
void |
setStatus(ProjectStatus pStatus)
Sets a new value for the project status. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final double DEFAULT_CAPACITY
public static final int DEFAULT_DURATION
| Constructor Detail |
public ProjectItem(java.lang.String name)
name - Name of project
public ProjectItem(java.lang.String name,
int start,
int end)
name - Name of projectstart - Start point of the project in months (counted from the time baseline)end - End point of the project in months (counted from the baseline)| Method Detail |
public void setName(java.lang.String pName)
setName in class AbstractItempublic ProjectStatus getStatus()
public void setStatus(ProjectStatus pStatus)
pStatus - New value for project statuspublic void setDescription(java.lang.String pDescription)
setDescription in class AbstractItempDescription - New value for descriptionpublic Feature getRootFeature()
public void setRootFeature(Feature pRootFeature)
pRootFeature - New root featurepublic int getStart()
Example: Start year is 1998, the project is scheduled for May 1999. In this case this method would return 17.
public void setStart(int pStart)
pStart - New value for startsetEnd(int)public int getEnd()
public void setEnd(int pEnd)
pEnd - New value for endsetStart(int)public int getDuration()
public int getTotalDuration()
public void fixTimimg()
fixTiming(0, false).
#fixTiming(int,boolean)
public void fixTimimg(int pTimeBuffer,
boolean pDoNotSucessors)
pTimeBuffer - Optional buffer in monthspDoNotSucessors - If false, subsequent projects are not movedpublic void move(int pDelta)
public void extendEnd(int pDelta)
public void extendStart(int pDelta)
public void setContainer(ProjectContainer pContainer)
public ProjectContainer getContainer()
public void delete()
delete in class AbstractItempublic void modelChanged(ModelEvent ev)
ModelListener
modelChanged in interface ModelListenerev - Model eventModelEventprotected AbstractItem copyAttributes(AbstractItem pItem)
copyAttributes in class AbstractItempublic java.util.Collection getSuppliedProjects()
public java.util.Collection getDependendProjects()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||