com.jstatcom.project
Class Project
- java.lang.Object
-
- com.jstatcom.project.Project
-
public final class Project extends java.lang.ObjectHolds all elements that make up a project. This class is XML serializable. A project contains of the following elements:- name
- project description
- a list with all current
OutputDataobjects to represent the history of all computations that have been carried out for a project - a list with all
ProjectDataTypesfor representing all loaded data of potentially different types - a list with
ProjectStateobjects that represent the module states
-
-
Field Summary
Fields Modifier and Type Field and Description static XmlFormat<Project>Project_XML
-
Constructor Summary
Constructors Constructor and Description Project(java.lang.String name, java.lang.String description)Creates a new project with a name and a project description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddOutputData(OutputData outputData)Adds a new output data element to this project.voidaddProjectData(ProjectData pData)Adds project data to this project.voidaddProjectState(ProjectState projectState)Adds a new project state to this project.java.lang.StringgetCurrentModuleFrame()Gets the name of the module frame that should be displayed when this project is loaded.java.util.DategetDate()Gets the creation date of this project.java.lang.StringgetDescription()Gets the description of this project.java.lang.StringgetName()Gets the name of this project.java.util.IteratorgetOutputDataIterator()Gets an iterator over all output data elements.java.util.IteratorgetProjectDataIterator()Gets an iterator over all added project data object.java.util.IteratorgetProjectStatesIterator()Gets an iterator over all project states.voidsetCurrentModuleFrame(java.lang.String currentModuleFrame)Sets the name of the module frame that should be displayed when this project is loaded.
-
-
-
Constructor Detail
-
Project
public Project(java.lang.String name, java.lang.String description)Creates a new project with a name and a project description.- Parameters:
name- name of the project, will automatically be set to"project"ifnullor emptydescription- description of this project, can benull
-
-
Method Detail
-
addProjectData
public void addProjectData(ProjectData pData)
Adds project data to this project. Nothing happens if the same object was added before.- Parameters:
pData- element of the project data store to be serialized- Throws:
java.lang.IllegalArgumentException-if (dataStoreType == null)
-
addOutputData
public void addOutputData(OutputData outputData)
Adds a new output data element to this project.- Parameters:
outputData- output data object- Throws:
java.lang.IllegalArgumentException-if (outputData == null)
-
addProjectState
public void addProjectState(ProjectState projectState)
Adds a new project state to this project. Nothing happens ifprojectState == null.- Parameters:
projectState- project state object
-
getOutputDataIterator
public java.util.Iterator getOutputDataIterator()
Gets an iterator over all output data elements.- Returns:
- output iterator
-
getProjectDataIterator
public java.util.Iterator getProjectDataIterator()
Gets an iterator over all added project data object.- Returns:
- project data iterator
-
getProjectStatesIterator
public java.util.Iterator getProjectStatesIterator()
Gets an iterator over all project states.- Returns:
- project states iterator
-
getDate
public java.util.Date getDate()
Gets the creation date of this project.- Returns:
- creation date
-
getDescription
public java.lang.String getDescription()
Gets the description of this project.- Returns:
- description, never returns
nullbut""if empty
-
getName
public java.lang.String getName()
Gets the name of this project.- Returns:
- the name of this project
-
getCurrentModuleFrame
public java.lang.String getCurrentModuleFrame()
Gets the name of the module frame that should be displayed when this project is loaded.- Returns:
- name of the module frame
-
setCurrentModuleFrame
public void setCurrentModuleFrame(java.lang.String currentModuleFrame)
Sets the name of the module frame that should be displayed when this project is loaded. Does nothing if the current module frame is null.- Parameters:
currentModuleFrame- frame title of the module
-
-
DMelt 3.0 © DataMelt by jWork.ORG