Public Member Functions | Package Functions

alma.acs.genfw.runtime.sm.AcsDoActivity Class Reference

List of all members.

Public Member Functions

 AcsDoActivity (String name, AcsSimpleState nextState, AcsSimpleState errorState, AcsLogger logger, ThreadPoolExecutor executor)
void execute ()
abstract void runActions () throws AcsStateActionException
void terminateActions ()

Package Functions

void logActionFailure (String sourceStateName, String targetStateName, String actionName, Throwable thr)

Detailed Description

Represents an Activity in state (do-activity).

Implementation note: uses a single instance of ExecutorService for cheaply reusing a thread in execute() for all do activities.

Author:
hsommer created Apr 29, 2004 3:55:28 PM

Constructor & Destructor Documentation

alma.acs.genfw.runtime.sm.AcsDoActivity.AcsDoActivity ( String  name,
AcsSimpleState  nextState,
AcsSimpleState  errorState,
AcsLogger  logger,
ThreadPoolExecutor  executor 
)
Parameters:
name name for the activity
nextState state to which the implicit "completion transition" will go.
errorState error state to which we'll go in case of errors.
logger Logger used by this class.
threadFactory The thread factory used for asynchronous execution of the runActions() method.

Member Function Documentation

void alma.acs.genfw.runtime.sm.AcsDoActivity.execute (  ) 
void alma.acs.genfw.runtime.sm.AcsDoActivity.logActionFailure ( String  sourceStateName,
String  targetStateName,
String  actionName,
Throwable  thr 
) [package]
Parameters:
sourceStateName beginning of transition, or activity state
targetStateName end of transition, or null if the action comes from the do/ method of an activity state.
actionName 

References alma.acs.logging.AcsLogger.log().

abstract void alma.acs.genfw.runtime.sm.AcsDoActivity.runActions (  )  throws AcsStateActionException [pure virtual]

Must call the action methods associated with this activity.

Referenced by alma.acs.genfw.runtime.sm.AcsDoActivity.execute().

void alma.acs.genfw.runtime.sm.AcsDoActivity.terminateActions (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties