|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.ts.TSProject
public final class TSProject
This class is in a preliminary state. It certainly needs to work with a yet
to build TSProjectManager
. So far its only purpose is to
store project descriptions. Further experience needs to be gained on how a
usable project management for time series projects can be implemented.
Stores common information for a set of TS
. This is so far:
TSProject
is in sync with TSHolder
via a
PropertyChangeListener
. This means that series that are
removed from the TSHolder
are also removed from the projects
they belong to.
Field Summary | |
---|---|
static TSProject |
DEFAULT_PROJECT
Default project, where all TS are added if no other
project is specified. |
Constructor Summary | |
---|---|
TSProject(java.lang.String projectName)
Creates a new TSProject with a name. |
|
TSProject(java.lang.String projectName,
java.lang.String description)
Creates a new TSProject with a name and a project
description. |
Method Summary | |
---|---|
void |
addTS(TS ts)
Adds a time series to this project. |
java.lang.String |
getDescription()
Gets the description of this project. |
java.lang.String |
getName()
Gets the name of this project. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method is called whenever there is a property change in the connected property fields. |
void |
removeTS(java.lang.String name)
Removes a time series from this project. |
void |
setDescription(java.lang.String newProjectDescription)
Sets the description for this project. |
java.lang.String |
toString()
Gets a string representation of this project. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TSProject DEFAULT_PROJECT
TS
are added if no other
project is specified.
Constructor Detail |
---|
public TSProject(java.lang.String projectName)
TSProject
with a name.
projectName
- the name of the new projectpublic TSProject(java.lang.String projectName, java.lang.String description)
TSProject
with a name and a project
description.
projectName
- the name of the new projectdescription
- the project descriptionMethod Detail |
---|
public void addTS(TS ts)
ts
- time series to be added to this projectpublic java.lang.String getDescription()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
evt
- a property change eventpublic void removeTS(java.lang.String name)
name
- the String
identifying the time series to
removepublic void setDescription(java.lang.String newProjectDescription)
newProjectDescription
- the new descriptionpublic java.lang.String toString()
toString
in class java.lang.Object
TS
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |