|
|||||||||||
| 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
|
+--org.fopps.model.Product
A Product is an aggregation of one or more assets. They may derive from an exiting product. In this case it will get all features of the derived product.
| Field Summary |
| Fields inherited from class org.fopps.model.ProjectItem |
DEFAULT_CAPACITY, DEFAULT_DURATION |
| Fields inherited from class org.fopps.model.AbstractItem |
ADDED_EVENT, CHANGE_EVENT, name, REMOVED_EVENT |
| Constructor Summary | |
Product(java.lang.String name)
|
|
| Method Summary | |
boolean |
applyConfiguration(ConfigurationSet pSet)
Applies a configuration set |
ConfigurationItem |
getConfiguration()
|
ConfigurationSet |
getConfigurationSet()
Returns the set with all configuration settings |
java.lang.String |
getFeatureTreeForConfiguration()
Returns the configuration tree as string |
ConfigurationItem |
getItemByName(java.lang.String pSymbolicVar)
Returns the item of a given variable |
java.util.Set |
getSymbolicVars()
Returns the set of all variable names |
java.io.File |
getTargetDirectory()
|
java.lang.String |
getValueByName(java.lang.String pSymbolicVar)
Returns the value of a given variable |
static boolean |
isAutoUpdate()
Returns true, if changes in configuration are updated on demand |
void |
modelChanged(ModelEvent ev)
Called, if configuration changed |
void |
rebuildConfiguration()
Rereads the feature tree and sets up a new configuration set. |
boolean |
restoreConfiguration()
Restores a previous saved configuration. |
void |
saveConfiguration()
Saves the current configuration. |
static void |
setAutoUpdate(boolean autoUpdate)
Enables or disables automatic update of configuration changes. |
void |
setConfiguration(ConfigurationItem pItem)
|
void |
setTargetDirectory(java.io.File pTargetDirectory)
|
boolean |
setValueByName(java.lang.String pSymbolicVar,
java.lang.String pValue)
Sets the value of a given variable. |
java.lang.String |
toString()
|
| Methods inherited from class org.fopps.model.ProjectItem |
clone, copyAttributes, delete, extendEnd, extendStart, fixTimimg, fixTimimg, getContainer, getDependendProjects, getDuration, getEnd, getRootFeature, getStart, getStatus, getSuppliedProjects, getTotalDuration, move, setContainer, setDescription, setEnd, setName, setRootFeature, setStart, setStatus |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Product(java.lang.String name)
| Method Detail |
public ConfigurationItem getConfiguration()
public java.io.File getTargetDirectory()
public void setTargetDirectory(java.io.File pTargetDirectory)
public static boolean isAutoUpdate()
public static void setAutoUpdate(boolean autoUpdate)
public void rebuildConfiguration()
public void setConfiguration(ConfigurationItem pItem)
public void saveConfiguration()
public boolean restoreConfiguration()
public boolean applyConfiguration(ConfigurationSet pSet)
Feature.setSymbolicVar(String)public java.lang.String getFeatureTreeForConfiguration()
public ConfigurationSet getConfigurationSet()
public java.lang.String getValueByName(java.lang.String pSymbolicVar)
public boolean setValueByName(java.lang.String pSymbolicVar,
java.lang.String pValue)
pSymbolicVar - Name of variablepValue - New valueOption,
Alternativepublic ConfigurationItem getItemByName(java.lang.String pSymbolicVar)
public java.util.Set getSymbolicVars()
public void modelChanged(ModelEvent ev)
modelChanged in interface ModelListenermodelChanged in class ProjectItemev - Model eventModelEventpublic java.lang.String toString()
toString in class ProjectItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||