LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.misc
Interface LyPlayer

All Known Subinterfaces:
LyDemandPlayer

public interface LyPlayer

Interface used to take demands control in test modes.


Field Summary
static java.lang.String __VERSION
           
static java.lang.String NEW_MARKER
          Marker for new objects created when recording scenario.
 
Method Summary
 void addValue(java.lang.String key, java.lang.String value, boolean name)
          Adds a pair key-value to the session.
 void free()
          Free this player.
 int getDelay()
          Gets delay between each event.
 java.lang.String getValue(java.lang.String key, boolean name)
          Retrieves a value from a registered key.
 void handleException(java.lang.Throwable t)
          Method called when an exception occured during the session proccessing.
 boolean isPlaying()
          Indicates if this player is playing a scenario.
 boolean isRecording()
          Indicates if this player is recording a scenario.
 boolean playNext()
          Used in test mode to play next demand in test file.
 

Field Detail

__VERSION

static final java.lang.String __VERSION
See Also:
Constant Field Values

NEW_MARKER

static final java.lang.String NEW_MARKER
Marker for new objects created when recording scenario.

See Also:
Constant Field Values
Method Detail

playNext

boolean playNext()
Used in test mode to play next demand in test file.

Returns:
true if the next demand exists and is played, false otherwise

getDelay

int getDelay()
Gets delay between each event.

Returns:
the delay

free

void free()
Free this player.


isPlaying

boolean isPlaying()
Indicates if this player is playing a scenario.

Returns:
true if this player is playing a scenario, false otherwise

isRecording

boolean isRecording()
Indicates if this player is recording a scenario.

Returns:
true if this player is recording a scenario, false otherwise

addValue

void addValue(java.lang.String key,
              java.lang.String value,
              boolean name)
Adds a pair key-value to the session.

Parameters:
key - The key that must be stored.
value - The value that must be stored with the key.
name - Boolean indicating if the stored value corresponds to an object name.
See Also:
getValue(java.lang.String, boolean)

getValue

java.lang.String getValue(java.lang.String key,
                          boolean name)
Retrieves a value from a registered key.

Parameters:
key - The key that must be used.
name - Boolean indicating if the stored value corresponds to an object name.
Returns:
The value stored with the key or null if the key is not registered.
See Also:
addValue(java.lang.String, java.lang.String, boolean)

handleException

void handleException(java.lang.Throwable t)
Method called when an exception occured during the session proccessing.

Parameters:
t - The throwable instance that stopped the processing.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com