|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
raccoon.core.uitest.file.FilePublisher
public class FilePublisher
The file publisher implementation of IUnitPlayer
.
Field Summary |
---|
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
mConfigurableManager |
Fields inherited from class raccoon.core.types.AbsLoadable |
---|
mIsLoaded |
Fields inherited from class raccoon.core.types.AbsComponent |
---|
mIsInError |
Fields inherited from interface raccoon.api.eai.uitest.IUnitPlayer |
---|
PLAYER_CHANNEL, REPEAT, REPEAT_INFINITE, REPEAT_ONCE |
Constructor Summary | |
---|---|
FilePublisher()
|
Method Summary | |
---|---|
void |
addPlayerChannel(ComponentFile pRecordingChannel)
Adds a new player channel to the list of current playing channels. |
void |
configureParameters()
Configures the various parameters for this component. |
java.util.ArrayList |
getPlayerChannels()
The list of channels on which the messages are being sent. |
int |
getRepeat()
The number of times this unit player must repeat the specified sequence. |
void |
load()
Loads or initializes the component. |
void |
run()
Publishes all the sequenced messages. |
void |
setPlayerChannels(java.util.ArrayList pPlayerChannels)
Sets the channels to which the events are to be sent. |
void |
setRepeat(int pRepeat)
Defines the number of times this player should repeat the sequence. |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
isStable, setConfigurableManager, setLogger |
Methods inherited from class raccoon.core.types.AbsLoadable |
---|
getLog, isInError, isInitialised, isRunning, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilePublisher()
Method Detail |
---|
public int getRepeat()
getRepeat
in interface IUnitPlayer
public void setRepeat(int pRepeat) throws RaccoonException, java.lang.IllegalArgumentException
setRepeat
in interface IUnitPlayer
pRepeat
- the number of times this player should repeat the sequence, zero for infinite.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public void setPlayerChannels(java.util.ArrayList pPlayerChannels) throws RaccoonException, java.lang.IllegalArgumentException
setPlayerChannels
in interface IUnitPlayer
pPlayerChannels
- the channels.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public java.util.ArrayList getPlayerChannels()
getPlayerChannels
in interface IUnitPlayer
ArrayList
of ComponentFile
public void addPlayerChannel(ComponentFile pRecordingChannel) throws RaccoonException, java.lang.IllegalArgumentException
addPlayerChannel
in interface IUnitPlayer
pRecordingChannel
- the new playing channel to add.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public void run() throws RaccoonException
run
in interface IUnitPlayer
RaccoonException
- if the publication is interrupted.public void load() throws java.lang.IllegalStateException, LoadableException
load
in interface ILoadable
load
in class AbsConfigurableLoadable
LoadableException
- if the component couldn't load itself.
java.lang.IllegalStateException
- if the component isn't in a state to load itself. for example it is already loaded.public void configureParameters()
IConfigurableManager
provided during the invocation
of AbsConfigurableLoadable.setConfigurableManager(IConfigurableManager)
.
configureParameters
in interface IConfigurable
configureParameters
in class AbsConfigurableLoadable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |