All Packages Class Hierarchy This Package Previous Next Index
Class guinea.logic.GenericTest
java.lang.Object
|
+----guinea.logic.Test
|
+----guinea.logic.GenericTest
- public class GenericTest
- extends Test
- implements PropertyLoader
Variable Index
- ·
autoPlaySample
- The sample to play automatically when item starts.
- ·
fadeLength
- The length of crossfade in free parallel sample swithing.
- ·
fadeType
- The type of crossfade, default is 'linear'.
- ·
played
-
- ·
playName
-
- ·
sampleComb
-
- ·
sampleHash
-
- ·
showSamplePlaying
- Whether to show to the subject which sample is currently playing.
Constructor Index
- ·
GenericTest()
-
Method Index
- ·
endItemSamples()
- Unload and remove sample objects that were needed with this
item.
- ·
endItemSamples_base()
-
- ·
endItemSamples_free()
-
- ·
endItemSamples_seq()
-
- ·
getSampleSwitchingFadeLength()
- Get the length of crossfade.
- ·
getSampleSwitchingFadeType()
- Get the cross-fade type.
- ·
hasListenedSamples()
-
- ·
initItem()
- Initialize current item.
- ·
initItemSamples()
- Load and create sample objects for playing.
- ·
initItemSamples_base()
-
- ·
initItemSamples_free()
-
- ·
initItemSamples_seq()
-
- ·
propertyLoad(Properties, String)
-
- ·
runItem()
- Run the current item.
- ·
runSequence()
- Run the sample sequence.
- ·
samplePlay(String)
-
- ·
setSampleSwitchingFadeLength(double)
- Set the length of the crossfade from one sample to another.
- ·
setSampleSwitchingFadeType(String)
- Set the cross-fade type.
Variables
·
sampleComb
protected transient ParallelSamples sampleComb
·
sampleHash
protected transient Hashtable sampleHash
·
autoPlaySample
protected String autoPlaySample
- The sample to play automatically when item starts.
·
played
protected KeyCounter played
·
playName
protected String playName
·
showSamplePlaying
protected boolean showSamplePlaying
- Whether to show to the subject which sample is currently playing.
·
fadeLength
protected double fadeLength
- The length of crossfade in free parallel sample swithing.
·
fadeType
protected String fadeType
- The type of crossfade, default is 'linear'.
Constructors
·
GenericTest
public GenericTest()
Methods
·
setSampleSwitchingFadeType
public void setSampleSwitchingFadeType(String fadeType)
- Set the cross-fade type.
- Parameters:
- fadeType - the type of fade.
- See Also:
- setFadeType
·
getSampleSwitchingFadeType
public String getSampleSwitchingFadeType()
- Get the cross-fade type.
- Returns:
- the type of the cross-fade.
- See Also:
- getFadeType
·
setSampleSwitchingFadeLength
public void setSampleSwitchingFadeLength(double fadeLength)
- Set the length of the crossfade from one sample to another.
- Parameters:
- fadeLength - the length of fade in seconds.
- See Also:
- setFadeLength
·
getSampleSwitchingFadeLength
public double getSampleSwitchingFadeLength()
- Get the length of crossfade.
- Returns:
- the length of crossfade in seconds.
- See Also:
- getFadeLength
·
initItem
protected void initItem() throws Exception
- Initialize current item. Loads samples, reset answers, init
gui.
- Throws: Exception
- an exception is thrown if item
initialization fails for some reason.
- Overrides:
- initItem in class Test
·
runSequence
protected void runSequence() throws InterruptedException
- Run the sample sequence.
- Throws: InterruptedException
- an exception is thrown if
sequence was interrupted for some reason .
- Overrides:
- runSequence in class Test
·
runItem
protected void runItem() throws InterruptedException
- Run the current item. This method is run at the start of item
after it has been initialized when using free sequence.
- Throws: InterruptedException
- an exception is thrown if
sequence was interrupted for some reason .
- Overrides:
- runItem in class Test
·
initItemSamples_base
protected void initItemSamples_base() throws Exception
·
initItemSamples
protected void initItemSamples() throws Exception
- Load and create sample objects for playing. Information about
samples are read from the information about the current item.
- Throws: Exception
- initialization of samples may throw a
exception if something went wrong.
- Overrides:
- initItemSamples in class Test
·
initItemSamples_free
protected void initItemSamples_free() throws Exception
·
initItemSamples_seq
protected void initItemSamples_seq() throws Exception
·
endItemSamples_base
protected void endItemSamples_base()
·
endItemSamples
protected void endItemSamples()
- Unload and remove sample objects that were needed with this
item.
- Overrides:
- endItemSamples in class Test
·
endItemSamples_free
protected void endItemSamples_free()
·
endItemSamples_seq
protected void endItemSamples_seq()
·
hasListenedSamples
protected boolean hasListenedSamples()
·
samplePlay
protected void samplePlay(String name)
·
propertyLoad
public void propertyLoad(Properties p,
String name) throws IllegalArgumentException
- Overrides:
- propertyLoad in class Test
All Packages Class Hierarchy This Package Previous Next Index