net.simplace.core.FWObservable
public class FWObservable {
// Public Constructors
public FWObservable(Map aFormInputParameterMap, FWAbstractFunctionality
aFormFunctionality);
public FWObservable();
// Public Instance Methods public synchronized void
addObserver(
FWObserver aObserver);
Adds an observer to the set of observers for this object, provided
that it is not the same as some observer already in the set.
The order in which notifications will be delivered to multiple
observers is not specified. See the class comment.
- aObserver
- o an observer to be added.
public Map getParameterMap();
returns the parameterMap
public String
getStringParameterValue(String aKey);
returns one parameter value for given key - null if key was not set
public Integer
getIntegerParameterValue(String aKey);
returns one parameter converted to Integer value for given key - null if key was not set or value not convertible
public Double
getDoubleParameterValue(String aKey);
returns one parameter converted to Double value for given key - null if key was not set or value not convertible
public String
replaceParamTokens(String aString, Object aDefault);
replaces Parameters
returns aNewValue
public String
replaceParamTokens(String aString, Object aDefault, boolean
aIgnoreNull);
replaces Parameters
- aString
- aDefault
- aIgnoreNull
returns aNewValue
public Object
getParameter(String aKey);
returns parameter by aKey
public Object
getParameter(String aKey, Object aDefault);
returns parameter by aKey or default value
public void
setParameterValue(String aKey, Object aValue);
public void
setParameterValue(String aKey, Object aValue, boolean
aShouldNotify);
- aKey
- aValue
- aShouldNotify
public String getSystemID();
returns Identifier of this Functionality
public void
notifyObservers();
If this object has changed, as indicated by the
hasChanged
method, then notify
all of its observers and then call the
clearChanged
method to indicate that this
object has no longer changed.
Each observer has its update
method called with two arguments: this observable
object and null
. In other words, this method is equivalent to:
notifyObservers(null)
public void
notifyObservers(Object arg);
If this object has changed, as indicated by the
hasChanged
method, then notify
all of its observers and then call the
clearChanged
method to indicate that this
object has no longer changed.
Each observer has its update
method called with two arguments: this observable
object and the arg
argument.
public synchronized boolean hasChanged();
Tests if this object has changed.
returns true
if and only if the setChanged
method has been called
more recently than the clearChanged
method on this object;
false
otherwise.
public synchronized int countObservers();
Returns the number of observers of this Observable object.
returns the number of observers of this object.
public
FWAbstractFunctionality getFunctionality();
Returns the number of observers of this
Observable object.
returns the number of observers of this object.
public
FWObservable clone();
// Overrides java.lang.Object
Returns the number of observers of this
Observable object.
returns the number of observers of this object.
public boolean
getBooleanParameterValue(String aParamKey, boolean aDefault);
returns boolean parameter value
public void
removeParameter(String aElement);
public void
putAllParameters(Map aParamMap);
public boolean
isParameterSet(String aKey);
returns true, is the parameter is set, otherwise returns false
public String toString(); // Overrides java.lang.Object
// Protected Instance Methods protected synchronized void setChanged();
Marks this Observable object as having been changed; the hasChanged
method will now return true.
protected synchronized void clearChanged();
Indicates that this object has no longer changed, or that it has already notified all of its
observers of its most recent change, so that the hasChanged method will now return
false. This method is called automatically by the notifyObservers
methods.
}
Passed to: net.simplace.core.io.AbstractAsciiReader(), net.simplace.core.io.AbstractDataReader(), net.simplace.core.io.AbstractListReader(), net.simplace.pipe.control.FWPipeLineHelper.checkIfExpression(), net.simplace.core.io.ColumnData(), net.simplace.sim.io.resources.FWSimResourceAdapter.createAdapterFromObservable(), net.simplace.pipe.util.FWFormPanel.createFormComponent(), net.simplace.pipe.util.FWFormComponentFactory.createFormComponent(), FWFrameworkHelper.createFormComponentLocaleBundleKey(), net.simplace.sim.io.output.FWSimOutputAdapter.createOutputFromObservable(), net.simplace.pipe.io.DatabaseAccessPanel(), net.simplace.pipe.io.DatabaseAccessPanel(), net.simplace.pipe.control.FWPipeLineHelper.filterParameters(), net.simplace.pipe.formcomponents.FWAbstractFormComponent(), net.simplace.pipe.formcomponents.FWAbstractFormComponent(), net.simplace.pipe.formcomponents.FWAbstractFormSubComponent(), net.simplace.pipe.formcomponents.result.FWChartFormComponent(), net.simplace.pipe.formcomponents.choice.FWCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.choice.FWCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.choice.FWCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.choice.FWCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.FWCheckValueFormComponent(), net.simplace.pipe.formcomponents.choice.FWChoiceFormComponent(), net.simplace.pipe.formcomponents.database.FWDatabaseAccessFormComponent(), net.simplace.pipe.formcomponents.date.FWDateFormComponent(), net.simplace.pipe.formcomponents.date.FWDatePopUpButton(), net.simplace.pipe.formcomponents.date.FWDaySubComponent(), net.simplace.pipe.formcomponents.integer.FWDoubleFormComponent(), net.simplace.pipe.formcomponents.file.FWFileChooserFormComponent(), net.simplace.pipe.util.FWFormDialog(), net.simplace.pipe.util.FWFormPanel(), net.simplace.pipe.formcomponents.FWGroupFormComponent(), net.simplace.pipe.formcomponents.FWHeaderFormComponent(), net.simplace.pipe.formcomponents.result.FWImageFormComponent(), net.simplace.ui.panel.FWImagePanel(), net.simplace.pipe.formcomponents.integer.FWIntegerFormComponent(), net.simplace.pipe.formcomponents.FWLabelFormComponent(), net.simplace.pipe.formcomponents.choice.FWLocalizationListCellRenderer(), net.simplace.pipe.formcomponents.choice.FWLocalizationListCellRenderer(), net.simplace.pipe.formcomponents.choice.FWLocalizationListCellRenderer(), net.simplace.pipe.formcomponents.table.FWLocalizationTableCellRenderer(), net.simplace.pipe.formcomponents.table.FWLocalizationTableCellRenderer(), net.simplace.pipe.formcomponents.FWMemoryMonitorFormComponent(), net.simplace.pipe.formcomponents.date.FWMonthSubComponent(), net.simplace.pipe.formcomponents.date.FWMonthSubComponent(), net.simplace.pipe.formcomponents.FWPasswordFormComponent(), net.simplace.pipe.control.FWPipeLinesContainer(), net.simplace.pipe.formcomponents.button.FWProcessorButtonFormComponent(), net.simplace.pipe.formcomponents.FWProgressFormComponent(), net.simplace.pipe.progress.FWProgressTaskEvent(), net.simplace.core.property.FWPropertyContainer(), net.simplace.pipe.formcomponents.result.FWResultFormComponent(), net.simplace.pipe.formcomponents.choice.FWSingleCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.choice.FWSingleCheckboxChoiceSubComponent(), net.simplace.pipe.formcomponents.choice.FWTableChoiceSubComponent(), net.simplace.pipe.formcomponents.table.FWTableFormComponent(), net.simplace.pipe.formcomponents.FWTextFormComponent(), net.simplace.pipe.formcomponents.FWTreeFormComponent(), net.simplace.pipe.formcomponents.date.FWYearSubComponent(), net.simplace.pipe.formcomponents.date.FWYearSubComponent(), net.simplace.core.customize.FWCustomizableLayoutProvider.getChartStyle(), net.simplace.pipe.system.FWSystemModel.getChartStyle(), net.simplace.pipe.control.FWPipeLinesContainer.getClonedContainer(), net.simplace.sim.FWSimSolution.getDynamicForm(), net.simplace.core.io.AbstractDataReader.getIntegerValue(), net.simplace.core.database.HSQLAsciiReader(), net.simplace.core.database.HSQLListReader(), net.simplace.pipe.formcomponents.FWAbstractFormComponent.init(), net.simplace.pipe.filler.FWDatabaseFormComponentFiller.initialize(), net.simplace.pipe.filler.FWAbstractFormComponentFiller.initialize(), net.simplace.pipe.formcomponents.result.FWAbstractResultFormComponentPanel.initialize(), net.simplace.pipe.formcomponents.FWAbstractExtendedFormComponent.initialize(), net.simplace.pipe.control.FWLoopProcessor.interveneRunLoop(), net.simplace.pipe.processors.LoopSystemscenarioProcessor.interveneRunLoop(), net.simplace.pipe.processors.LoopScenarioProcessor.interveneRunLoop(), net.simplace.core.ui.jfreechart.JFreeChartAsciiReader(), FWFrameworkHelper.localizeFormComponentValue(), net.simplace.core.io.MapAsciiReader(), net.simplace.pipe.control.FWPipeLineHelper.performChannelReplacements(), net.simplace.pipe.control.FWProcessor.pipe(), net.simplace.pipe.control.FWPipeLine.prepare(), net.simplace.core.service.PrintHelper.print(), FWFrameworkHelper.replaceParamsInFile(), net.simplace.pipe.control.FWLoopProcessor.runLoop(), net.simplace.pipe.control.FWProcessor.setInParameterMap(), net.simplace.core.ui.jfreechart.ChartStyle.setObservable(), net.simplace.core.ui.jfreechart.AbstractChartStyle.setObservable(), net.simplace.pipe.formcomponents.FWAbstractFormComponent.setObservable(), net.simplace.pipe.functionality.FWAbstractFunctionality.setObservable(), net.simplace.pipe.progress.FWProgressTask.setStateOfTask(), net.simplace.ui.usermessage.FWMessageDialog.showFormDialog(), FWObserver.update(), net.simplace.pipe.formcomponents.FWTreeFormComponent.update(), net.simplace.pipe.formcomponents.FWTextFormComponent.update(), net.simplace.pipe.formcomponents.FWProgressFormComponent.update(), net.simplace.pipe.formcomponents.FWPasswordFormComponent.update(), net.simplace.pipe.formcomponents.FWMemoryMonitorFormComponent.update(), net.simplace.pipe.formcomponents.FWLabelFormComponent.update(), net.simplace.pipe.formcomponents.FWHeaderFormComponent.update(), net.simplace.pipe.formcomponents.FWGroupFormComponent.update(), net.simplace.pipe.formcomponents.FWCheckValueFormComponent.update(), net.simplace.pipe.formcomponents.FWAbstractFormComponent.update(), net.simplace.pipe.formcomponents.button.FWProcessorButtonFormComponent.update(), net.simplace.pipe.formcomponents.choice.FWChoiceFormComponent.update(), net.simplace.pipe.formcomponents.database.FWDatabaseAccessFormComponent.update(), net.simplace.pipe.formcomponents.date.FWDateFormComponent.update(), net.simplace.pipe.formcomponents.file.FWFileChooserFormComponent.update(), net.simplace.pipe.formcomponents.integer.FWIntegerFormComponent.update(), net.simplace.pipe.formcomponents.integer.FWDoubleFormComponent.update(), net.simplace.pipe.formcomponents.result.FWResultFormComponent.update(), net.simplace.pipe.formcomponents.result.FWImageFormComponent.update(), net.simplace.pipe.formcomponents.result.FWChartFormComponent.update(), net.simplace.sim.FWSimSolution.update(), net.simplace.sim.io.resources.FWSimResourceTransformer.updateFields(), net.simplace.sim.transformers.DefaultSQLStatementTransformer.updateFields(), net.simplace.sim.transformers.DefaultRuleTransformer.updateFields(), net.simplace.sim.util.FWSimVariable.updateFields(), net.simplace.core.ui.jfreechart.style.XMLChartStyle()
Returned by: clone(), net.simplace.pipe.control.FWPipeLineHelper.filterParameters(), net.simplace.pipe.control.FWProcessor.getInParameters(), net.simplace.core.property.FWPropertyContainer.getObservable(), net.simplace.pipe.control.FWPipeLinesContainer.getObservable(), net.simplace.pipe.formcomponents.FWAbstractFormComponent.getObservable(), net.simplace.pipe.formcomponents.result.FWAbstractResultFormComponentPanel.getObservable(), net.simplace.pipe.functionality.FWAbstractFunctionality.getObservable(), net.simplace.pipe.progress.FWProgressTaskEvent.getObservable(), net.simplace.pipe.util.FWFormPanel.getObservable(), net.simplace.pipe.util.FWFormDialog.getObservable(), net.simplace.pipe.control.FWPipeLine.getResult(), net.simplace.pipe.control.FWPipeLineHelper.performChannelReplacements(), net.simplace.pipe.control.FWProcessor.pipe(), net.simplace.pipe.control.FWPipeLineHelper.processPipeLine(), net.simplace.pipe.functionality.FWAbstractFunctionality.runFunctionality(), net.simplace.pipe.control.FWLoopProcessor.runLoop(), net.simplace.pipe.control.FWFunctionalityPipelineRunner.runPipeline(), net.simplace.pipe.control.FWFunctionalityPipelineRunner.runPipeline(), net.simplace.ui.usermessage.FWMessageDialog.showFormDialog()
Type of: net.simplace.pipe.control.FWProcessor.iInObservable, net.simplace.pipe.filler.FWAbstractFormComponentFiller.iObervable, net.simplace.core.io.AbstractDataReader.iObservable, net.simplace.core.ui.jfreechart.AbstractChartStyle.iObservable, net.simplace.pipe.control.FWProcessor.iObservable, net.simplace.pipe.formcomponents.FWAbstractFormSubComponent.iObservable, net.simplace.pipe.formcomponents.FWAbstractFormComponent.iObservable, net.simplace.pipe.formcomponents.choice.FWLocalizationListCellRenderer.iObservable, net.simplace.pipe.formcomponents.table.FWLocalizationTableCellRenderer.iObservable