|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.mtp.pounder.PounderModel
Keeps track of the current pounding taking place. This includes the list of actions needed for the pounding, the component to be test pounded, and possibly an XML file for output.
| Field Summary | |
protected PlainDocument |
comment
|
protected FileModel |
fileModel
|
protected Listeners |
listeners
|
protected DefaultComboBoxModel |
loadedTestObjects
|
protected PlaybackThread |
playbackThread
|
protected PounderPrefs |
preferences
|
protected DefaultBoundedRangeModel |
progressModel
|
protected RecordingRecord |
record
|
protected RecordingThread |
recordingThread
|
protected StatusModel |
statusModel
|
protected TestInstanceFactory |
testInstanceFactory
|
| Fields inherited from interface com.mtp.pounder.PounderConstants |
FILE_EXTENSION, FILE_FORMAT_VERSION, VERSION |
| Constructor Summary | |
PounderModel()
Default constructor. |
|
PounderModel(boolean loadDataFromSystem)
Loads data from system as specified. |
|
PounderModel(PounderPrefs preferences)
Initialize with given PounderPrefs. |
|
| Method Summary | |
void |
addListener(PounderModelListener l)
|
protected void |
addLoadedTestObject(String name)
|
void |
beginVerbatimRecording()
|
boolean |
equals(Object o)
Override equals. |
protected void |
finalize()
|
void |
fireChange()
|
PlainDocument |
getComment()
Return our comment. |
FileModel |
getFileModel()
|
DefaultComboBoxModel |
getLoadedTestObjects()
Returns the DefaultComboBoxModel used to track our loaded test objects. |
PounderPrefs |
getPreferences()
|
DefaultBoundedRangeModel |
getProgressModel()
Return model used to track progress of playback and other actions. |
RecordingRecord |
getRecord()
|
StatusModel |
getStatusModel()
|
ClassLoader |
getTestClassLoader()
|
TestInstanceFactory |
getTestInstanceFactory()
|
boolean |
isPaused()
|
boolean |
isPlaying()
Returns true if we are currently playing. |
boolean |
isRecording()
Returns true if we are currently recording. |
boolean |
isSaveNeeded()
Return true if a save is needed. |
boolean |
isTestClassSet()
Returns true if the test class is set. |
protected boolean |
loadedTestObjectExists(String name)
|
void |
newInstance()
|
void |
playback()
|
void |
playbackFinished()
|
void |
recordingFinished()
|
void |
removeListener(PounderModelListener l)
|
void |
setPaused(boolean b)
|
void |
setPreferences(PounderPrefs p)
|
void |
setTestClass(String name)
Attempt to load an instance of this component from 'name'. |
void |
setTestInstanceFactory(TestInstanceFactory si)
|
void |
stop()
Stop recording or playing. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected RecordingThread recordingThread
protected RecordingRecord record
protected StatusModel statusModel
protected PlaybackThread playbackThread
protected TestInstanceFactory testInstanceFactory
protected PounderPrefs preferences
protected DefaultComboBoxModel loadedTestObjects
protected DefaultBoundedRangeModel progressModel
protected PlainDocument comment
protected Listeners listeners
protected FileModel fileModel
| Constructor Detail |
public PounderModel()
public PounderModel(boolean loadDataFromSystem)
public PounderModel(PounderPrefs preferences)
| Method Detail |
public boolean isSaveNeeded()
public FileModel getFileModel()
public void addListener(PounderModelListener l)
public void removeListener(PounderModelListener l)
public void fireChange()
public PlainDocument getComment()
public DefaultBoundedRangeModel getProgressModel()
public DefaultComboBoxModel getLoadedTestObjects()
public boolean isRecording()
public boolean isPlaying()
public boolean isTestClassSet()
public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Objectpublic PounderPrefs getPreferences()
public void setPreferences(PounderPrefs p)
public TestInstanceFactory getTestInstanceFactory()
public ClassLoader getTestClassLoader()
public void newInstance()
public void setPaused(boolean b)
public boolean isPaused()
public void stop()
public void playbackFinished()
public void recordingFinished()
public StatusModel getStatusModel()
public RecordingRecord getRecord()
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic void playback()
public void beginVerbatimRecording()
protected boolean loadedTestObjectExists(String name)
protected void addLoadedTestObject(String name)
public void setTestInstanceFactory(TestInstanceFactory si)
public void setTestClass(String name)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||