|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHWMDataModel
Title: IHWMDataModel
Description: The data model interface. It extends from HWMDataModel to remain compatible with previous versions
Company: Altair Engineering, Inc.
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Add a listener |
void |
addPropertyChangeListener(java.lang.String strName,
java.beans.PropertyChangeListener propChangeListener)
Add a listener for a particular property |
void |
ChangePropertyName(java.lang.String strOldName,
java.lang.String strNewName)
Change the name of a property in the datamodel. |
void |
ClearAll()
Clears all the properties |
void |
CopyRun(java.lang.String strRunName,
java.lang.String strCopyRunName)
Create a new run as a copy of an existing run |
java.util.Hashtable |
CreateRun(java.lang.String strRunName,
boolean bCopyScratchPad)
Create the data for the given run # |
void |
DeleteRun(java.lang.String strRunName)
Delete the data for the given run name |
void |
FireEvent(java.lang.Object objSender,
java.lang.String strPropName,
java.lang.Object objOldVal,
java.lang.Object objNewVal)
Fire event to all the listeners |
void |
FireEvent(java.beans.PropertyChangeEvent propChangeEvent)
Fire event to all the listeners |
void |
FireEvent(java.lang.String strPropName,
java.lang.Object objOldVal,
java.lang.Object objNewVal)
Fire event to all the listeners |
java.lang.String |
GetActiveRunName()
Return the active run name |
java.util.Vector |
GetAllPropertyNames()
Get a list of all properties avaliable in the datamodel |
java.util.Hashtable |
GetDataFromScratchPad()
ADDED DURING DATA MODEL VIEWER DEVELOPMENT Returns the ScratchPad Data that are stored in DataModel |
HWMDataModelViewerMgr |
GetDataModelViewerMgr()
Return the HWMDataModelViewerMgr, which manages data model viewer |
boolean |
GetEnable(java.lang.String strBeanInstance)
Gets the property "enable". |
java.lang.Object |
GetProperty(java.lang.String strName)
Gets the property value |
java.lang.Object |
GetProperty(java.lang.String strBeanInstance,
java.lang.String strName)
Gets the property value. |
int |
GetRunCount()
Return the number of runs |
java.util.Vector |
GetRunNames()
Return the names of all runs |
java.lang.Object |
GetValue(java.lang.String strBeanInstance)
Gets the property value. |
boolean |
GetVisible(java.lang.String strBeanInstance)
Gets the property "visible". |
boolean |
IsPropertyTransient(java.lang.String strPropName)
Returns a flag indicating if the property is set as transient |
void |
ReadDataModel(org.jdom.Element elemDataModel)
Reads the data model from a XML element |
void |
RemoveProperty(java.lang.String strName)
Remove the property value |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Removes a listener |
void |
removePropertyChangeListener(java.lang.String strName,
java.beans.PropertyChangeListener propChangeListener)
Remove a listener for a particular property |
void |
RemovePropertyFromActiveRun(java.lang.String strRunName,
java.lang.String strName)
Remove the property value from run name |
void |
SetActiveRun(java.lang.String strRunName)
Set the given run as active |
void |
SetEnable(java.lang.String strBeanInstance,
boolean bEnable)
Sets the property "enable". |
void |
SetProperty(java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value |
void |
SetProperty(java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetPropertyAsTransient(java.lang.String strPropName,
boolean bTransient)
Sets the property to be transient or non-transient |
void |
SetPropertyInActiveRun(java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value in the active run. |
void |
SetPropertyUsingSender(java.lang.Object objSender,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetPropertyUsingSender(java.lang.Object objSender,
java.lang.String strBeanInstance,
java.lang.String strName,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetValue(java.lang.String strBeanInstance,
java.lang.Object objNewValue)
Sets the property value. |
void |
SetValueInActiveRun(java.lang.String strBeanInstance,
java.lang.Object objNewValue)
Sets the property value in active run. |
void |
SetVisible(java.lang.String strBeanInstance,
boolean bVisible)
Sets the property "visible". |
void |
ShowDataViewer()
Show the Data Model Viewer |
void |
WriteDataModel(org.jdom.Element elemDataModel)
Writes the data model to a XML element |
Method Detail |
---|
void SetPropertyAsTransient(java.lang.String strPropName, boolean bTransient)
SetPropertyAsTransient
in interface HWMDataModel
strPropName
- The name of the propertybTransient
- If true, this property is set to transient i.e.
not saved. Else, it is saved.boolean IsPropertyTransient(java.lang.String strPropName)
IsPropertyTransient
in interface HWMDataModel
strPropName
- The name of the property
void SetProperty(java.lang.String strName, java.lang.Object objNewValue)
SetProperty
in interface HWMDataModel
strName
- The name of the propertyobjNewValue
- The value for the given propertyvoid SetPropertyUsingSender(java.lang.Object objSender, java.lang.String strName, java.lang.Object objNewValue)
objSender
- The sender who should not be notified (can be null)strName
- The name of the propertyobjNewValue
- The value for the given propertyvoid SetProperty(java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
strName
- The name of the propertyobjNewValue
- The value for the given propertyvoid SetPropertyUsingSender(java.lang.Object objSender, java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
objSender
- The sender who should not be notified (can be null)strBeanInstance
- The Bean instance whose property is being setstrName
- The name of the propertyobjNewValue
- The value for the given propertyjava.lang.Object GetProperty(java.lang.String strName)
GetProperty
in interface HWMDataModel
strName
- The name of the property
java.lang.Object GetProperty(java.lang.String strBeanInstance, java.lang.String strName)
strName
- The name of the property
void SetValue(java.lang.String strBeanInstance, java.lang.Object objNewValue)
strBeanInstance
- The Bean instance whose property is being setobjNewValue
- The value for the given propertyjava.lang.Object GetValue(java.lang.String strBeanInstance)
strBeanInstance
- The Bean instance whose property is being set
void SetEnable(java.lang.String strBeanInstance, boolean bEnable)
strBeanInstance
- The Bean instance whose property is being setbEnable
- The enable stateboolean GetEnable(java.lang.String strBeanInstance)
strBeanInstance
- The Bean instance whose property is being set
void SetVisible(java.lang.String strBeanInstance, boolean bVisible)
strBeanInstance
- The Bean instance whose property is being setbVisible
- The visible stateboolean GetVisible(java.lang.String strBeanInstance)
strBeanInstance
- The Bean instance whose property is being set
void RemoveProperty(java.lang.String strName)
RemoveProperty
in interface HWMDataModel
strName
- The name of the property to removevoid ChangePropertyName(java.lang.String strOldName, java.lang.String strNewName)
strOldName
- The old name of the propertystrNewName
- The new name of the property.void FireEvent(java.beans.PropertyChangeEvent propChangeEvent)
FireEvent
in interface HWMDataModel
propChangeEvent
- The property change event.void FireEvent(java.lang.String strPropName, java.lang.Object objOldVal, java.lang.Object objNewVal)
FireEvent
in interface HWMDataModel
strPropName
- The property name.objOldVal
- The old value for the property.objNewVal
- The new value for the property.
NOTE: If the oldValue = newValue, then the event is not firedvoid FireEvent(java.lang.Object objSender, java.lang.String strPropName, java.lang.Object objOldVal, java.lang.Object objNewVal)
objSender
- The sender who should not be notified (can be null)strPropName
- The property name.objOldVal
- The old value for the property.objNewVal
- The new value for the property.
NOTE: If the oldValue = newValue, then the event is not firedvoid addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
addPropertyChangeListener
in interface HWMDataModel
propChangeListener
- The listener object which will be notified.void addPropertyChangeListener(java.lang.String strName, java.beans.PropertyChangeListener propChangeListener)
addPropertyChangeListener
in interface HWMDataModel
strName
- Name of the property to listen to.propChangeListener
- The listener object which will be notified.void removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
removePropertyChangeListener
in interface HWMDataModel
propChangeListener
- The listener object which will be removed.void removePropertyChangeListener(java.lang.String strName, java.beans.PropertyChangeListener propChangeListener)
removePropertyChangeListener
in interface HWMDataModel
strName
- Name of the property.propChangeListener
- The listener object which should be removed.void ClearAll()
ClearAll
in interface HWMDataModel
java.util.Vector GetAllPropertyNames()
java.util.Hashtable GetDataFromScratchPad()
void ReadDataModel(org.jdom.Element elemDataModel) throws java.io.IOException, java.lang.ClassNotFoundException
ReadDataModel
in interface HWMDataModel
elemDataModel
- The element representing the datamodel
IOException,
- ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
void WriteDataModel(org.jdom.Element elemDataModel) throws java.io.IOException, java.lang.ClassNotFoundException
WriteDataModel
in interface HWMDataModel
elemDataModel
- The element representing the datamodel
IOException,
- ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
void SetPropertyInActiveRun(java.lang.String strBeanInstance, java.lang.String strName, java.lang.Object objNewValue)
strBeanInstance
- The Bean instance whose property is being setstrName
- The name of the propertyobjNewValue
- The value for the given propertyvoid SetValueInActiveRun(java.lang.String strBeanInstance, java.lang.Object objNewValue)
strBeanInstance
- The Bean instance whose property is
being setobjNewValue
- The value for the given propertyvoid RemovePropertyFromActiveRun(java.lang.String strRunName, java.lang.String strName)
strName
- The name of the property to removejava.util.Hashtable CreateRun(java.lang.String strRunName, boolean bCopyScratchPad) throws java.lang.Exception
strRunName
- The run name to createbCopyScratchPad
- If true, scratchpad is copied into the new run
java.lang.Exception
void CopyRun(java.lang.String strRunName, java.lang.String strCopyRunName) throws java.lang.Exception
strRunName
- The run name to createstrCopyRunName
- The name of the run to copy
java.lang.Exception
void DeleteRun(java.lang.String strRunName) throws java.lang.Exception
strRunName
- The run to delete
java.lang.Exception
int GetRunCount()
void SetActiveRun(java.lang.String strRunName) throws java.lang.Exception
strRunName
- Run name to activate
java.lang.Exception
java.util.Vector GetRunNames()
java.lang.String GetActiveRunName()
void ShowDataViewer()
HWMDataModelViewerMgr GetDataModelViewerMgr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |