Advices

This is an alphabetical list of all the advices in this documentation set:

PassiveToCyclicaladdActivationHelperFunctions
  Adds definition of two methods that activate the threads of active objects
PassiveToSporadicaddActivationHelperFunctions
  Adds definition of helper a function _activate() to tha main program unit
AddClassComment_1addClassComment
 Add a comment at the end of the comment of the target class
AddClassComment_2addClassComment
 Add a comment at the end of the comment of the target class
AddGetterMethodaddClassComment
 Add a comment at the end of the comment of the target class
AddComplexGetterMethodaddClassComment
 Add a comment at the end of the comment of the target class
AddAllGetterMethodsaddClassComment
 Add a comment at the end of the comment of the target class
EfficiencyaddComparison definition
  Add comparisonCount declaration
BaseParameteraddConstants
  Add constants to the class declaration
ParameterDatabaseByPointeraddConstants
  Add constants to the class declaration
CarSynchronizeWindowsaddConstrDecl
 Adds construtor declaration to classes which are to be sychronized and do not have a constructor
CarSynchronizeWindowsaddConstrDecl
 Adds construtor declaration to classes which are to be sychronized and do not have a constructor
CarSynchronizeWindowsaddConstrDef
 Adds construtor definition if the constructor was not defined
CarSynchronizeWindowsaddConstrDef
 Adds construtor definition if the constructor was not defined
PassiveToCyclicaladdCyclicalActivateDeclaraion
  Add declaration of the _activate() method to the class declaration
PassiveToCyclicaladdCyclicalActivateDefinition
  Add definition of _activate() method to class definition files
BaseParameteraddDatabaseInicialization
  Add code fragment that initialize the parameter database
ParameterDatabaseByPointeraddDatabaseInicialization
  Add code fragment that initialize the parameter database
BaseParameteraddDatabaseReference
  Add declaration of pointer to parameter database to target class
ParameterDatabaseByPointeraddDatabaseReference
  Add declaration of pointer to parameter database to target class
CarSynchronizeWindowsaddFields
 Adds field variable shared_mutex that is used as a lock to each class to be synchronized
CarSynchronizeWindowsaddFields
 Adds field variable shared_mutex that is used as a lock to each class to be synchronized
CleanupCommentsAddFileComment
 Adds a block comment
CleanupCommentsAddFileComment
 Adds a block comment
AddFunctionComment_1addFunctionComment
 Add a comment at the end of the comment of the target function
AddFunctionComment_2addFunctionComment
 Add a comment at the end of the comment of the target function
TraceaddImports
  Add the import statement for the java
TraceClassEntryaddInclude
 Add the #include statement for the stdio library
TraceConstructorEntryaddInclude
 Add the #include statement for the stdio library
TraceMethodEntryaddInclude
 Add the #include statement for the stdio library
TraceMethodIntParameteraddInclude
 Add the #include statement for the stdio library
TraceMethodIntParametersOnlyaddInclude
 Add the #include statement for the stdio library
TraceMethodLeaveaddInclude
 Add the #include statement for the stdio library
ProfilingaddInclude
  Add the necessary #include statements
EntryaddInclude
  Add the #include <pthread
CarPostConditionaddIncludeDecl
 Adds #include "RecoveryAction
CarPreConditionaddIncludeDecl
 Adds #include "RecoveryAction
CarPostConditionaddIncludeDef
 Adds #include "RecoveryAction
CarPreConditionaddIncludeDef
 Adds #include "RecoveryAction
TraceMethodEntryUsingTraceraddIncludeRootObject
 Add the #include "TracerSingleton
CarBeginEndaddIncludes
  Inserts #include and namespace instructions to the unit (file)
ThreadSafetyAddIncludes
 
CarSynchronizeWindowsaddIncludesToDeclaration
 Adds appropriate header files to each file that contains classes to be synchronized
ObserveraddIncludesToDeclaration
  Add the #include preprocessor instructions
BaseParameteraddIncludesToDeclaration
  Add the #include preprocessor instructions
ParameterDatabaseByPointeraddIncludesToDeclaration
  Add the #include preprocessor instructions
CarSynchronizeWindowsaddIncludesToDeclaration
 Adds appropriate header files to each file that contains classes to be synchronized
CarSynchronizeWindowsaddIncludesToDefinition
 Adds appropriate header files to each definition file that contains definitions of methods of classes to be synchronized
ObserveraddIncludesToDefinition
  Add the #include preprocessor instructions
CarSynchronizeWindowsaddIncludesToDefinition
 Adds appropriate header files to each definition file that contains definitions of methods of classes to be synchronized
PassiveToCyclicaladdIncludesToMain
  Add the #include "main
PassiveToSporadicaddIncludesToMain
  Add the #include "main
ObserveraddInitializers
  Add the initializers that sets up observers
TraceaddLoggerField
  Adds a logger field variable to every class that contains a construtor or a method
AddMethodCommentaddMethodComment
 Add a comment at the end of the comment of the target class
CleanupCommentsAddMethodComment
 Adds a block comment
CleanupCommentsAddMethodComment
 Adds a block comment
AddGetterMethodaddMethodDeclaration
 Add the declaration for the getter method
AddComplexGetterMethodaddMethodDeclaration
 Add the declaration for the getInternalState() method
AddAllGetterMethodsaddMethodDeclaration
 Add the inline getter methods
AddGetterMethodaddMethodDefinition
 Add the definition for the getter method
AddComplexGetterMethodaddMethodDefinition
 Add the definition for the complex getter method
ThreadSafetyAddMutexMember
 
ObserveraddObserverNotification
  Add observer notification instructions to the method that changes the state of the subject
ObserveraddObserversDeclaraion
  Add observers to the class declaration
ProfilingaddProfilingReportMethod
  Insert the definition of _profilingReport() method
ProfilingaddProfilingVariableInitialization
  Insert the initialization code of all profiling member variables to the class constructor
ProfilingaddProfilingVariables
  Insert declarations to each class
CarPostConditionaddRecoverySupportDefinition
 Adds the definition of setRecoveryAction() method to appropriate unit
CarPreConditionaddRecoverySupportDefinition
 Adds definition of method setRecoveryAction() to units (files) that contain definition of class that that have methods which ranges should be checked
CarPostConditionaddRecoverySupportFieldDeclaration
 Adds a field variable declaration RecoveryAction to classes that support recovery action
CarPreConditionaddRecoverySupportFieldDeclaration
 Adds a declaration of field variable recoveryAction to classes that support recovery
CarPostConditionaddRecoverySupportMethodDeclaration
 Adds a method setRecoveryAction() to the classes that support recovery
CarPreConditionaddRecoverySupportMethodDeclaration
 Adds a method setRecoveryAction() to the classes that supports recovery
PassiveToSporadicaddSporadicActivateDeclaraion
  Add declaration of _activate() method to the class declaration
PassiveToSporadicaddSporadicActivateDefinition
  Add definition of _activate() method to class definition files
PassiveToSporadicaddSynchronizationDeclaration
  Adds external declaration of three variables needed to implement the mutual exclusive access to the condition variable trigger
EntryaddSynchronizationDeclaration
  Adds external declaration of three variables needed to implement the mutual exclusive access to the condition variable trigger
PassiveToSporadicaddSynchronizationDefinition
  Adds declaration and initialization of three variables needed to implement the mutual exclusive access to the condition variable trigger
EntryaddSynchronizationDefinition
  Adds declaration and initialization of three variables needed to implement the mutual exclusive access to the condition variable trigger
AddClassFieldaddVariableDeclaration
 Add the declaration of the dummy variable in the target class
CarBeginEndatBegin
 Inserts a print instruction at the beginning of the target method
EntryatBegin
  Inserts the code that locks the access to the method body by acquiring the mutex
CarBeginEndatEnd
  Inserts a print instruction at the beginning of the target method
EntryatEnd
  Inserts the code that release the access to the method body by releasing the mutex
TracebeforeReturn
 Weave the log message before return statement of every method
EfficiencybeforeTermination
  Outputs the number of comparisons made by the algorithm, before the program exits
CarSynchronizeWindowsbeginLockFunction
 Locks the mutex at the beginning of each method in each class to be synchronized
CarSynchronizeWindowsbeginLockFunction
 Locks the mutex at the beginning of each method in each class to be synchronized
EfficiencybeginOfIfBlock
  Increments the comparison counter for each comparison made
ThreadSafetyCommentConstructor
 
ThreadSafetyCommentDestructor
 Calls pthread_mutex_destroy() on the _mutex object
ThreadSafetyCommentMethods
 
CarPostConditioncommentsForClassesWithCheckedFunctions
 Adds a comment in front of the class that contain classes with functions that returns pointers
CarPostConditioncommentsForCheckedFunctions
 Adds a comment in front of the function declarartion located by pointcut pointerReturningFunctionDeclarations
ThreadSafetyDestroyMutexInDestructor
 Calls pthread_mutex_destroy() on the _mutex object
TraceendFunction
 Weave the log message at the end of every method that has no return value
TraceenterConstructor
  Weave the log message at the beginning of every construtor
TraceenterFunction
 Weave the log message at the beginning of every method
EntryguardConditionChange
  Inserts the code to the main() function that changes the barrier by setting the trigger variable to non-zero value
CarPostConditioncheckBeforeReturn
 Adds a check of expresion value that is to be returned
CarPreConditioncheckedMethods
 Adds code that validates the precondition
CarSynchronizeWindowsinitializeMutex
 Inserts a piece of code that initializes the lock
CarSynchronizeWindowsinitializeMutex
 Inserts a piece of code that initializes the lock
ThreadSafetyInitMutexInConstructor
 
ProfilinginsertBeforeReturn
  Insert code that computes the time the program spent executing the current method
TraceClassEntryinsertClassComment
 Add a comment at the end of the comment of the target class
TraceConstructorEntryinsertClassComment
 Add a comment at the end of the comment of the classes that are modified by other advices
TraceMethodEntryinsertClassComment
 Add a comment at the end of the comment of the classes that are modified by other advices
TraceMethodIntParameterinsertClassComment
 Add a comment at the end of the comment of the classes that are modified by other advices
TraceMethodIntParametersOnlyinsertClassComment
 Add a comment at the end of the comment of the classes that are modified by other advices
TraceMethodLeaveinsertClassComment
 Add a comment at the end of the comment of the classes that are modified by other advices
TraceConstructorEntryinsertConstructorComment
 Add a comment at the end of the comment of the constructors that are modified by other advices
TraceClassEntryinsertConstructorTrace
 Insert the tracing instruction in the target construtors
TraceMethodLeaveinsertIntTraceBeforeReturn
 Insert the tracing instruction in the target methods
TraceMethodEntryinsertMethodComment
 Add a comment at the end of the comment of the methods that are modified by other advices
TraceMethodIntParameterinsertMethodComment
 Add a comment at the end of the comment of the methods that are modified by other advices
TraceMethodIntParametersOnlyinsertMethodComment
 Add a comment at the end of the comment of the methods that are modified by other advices
TraceMethodLeaveinsertMethodComment
 Add a comment at the end of the comment of the methods that are modified by other advices
TraceClassEntryinsertMethodTrace
 Insert the tracing instruction in the target methods
TraceMethodLeaveinsertNonIntTraceBeforeReturn
 Insert the tracing instruction in the target methods
ProfilinginsertReporterCall
  Insert call of method _profilingReport() at the end of execution of the main() function
TraceConstructorEntryinsertTrace
 Insert the tracing instruction in the target constructor
TraceMethodEntryinsertTrace
 Insert the tracing instruction in the target methods
TraceMethodIntParameterinsertTrace
 Insert the tracing instruction in the target methods
TraceMethodIntParametersOnlyinsertTrace
  Insert the tracing instruction in the target methods
TraceMethodEntryUsingTracerinsertTrace
 Insert the tracing instruction in the target method
TraceMethodLeaveinsertTraceAtContructorEnd
 Insert the tracing instruction in the target constructor
ProfilinginsertTraceAtEnd
  Insert code that computes the time the program spent executing the current method
TraceMethodLeaveinsertTraceAtFunctionEnd
 Insert the tracing instruction in the target methods
TraceMethodLeaveinsertVariableDeclaration
 Insert the declaration of integer local variable at the beginning of target methods
ProfilinginsertVariableDeclaration
 Insert the code that reads the current time and saves it to the local variable _profilingMethodStart
ThreadSafetyLockMutex
 
ParameterDatabaseByPointerreplaceParameterDeclarationsByPointers
  Replace declarations of member variables with the declarations of pointers to the parameter database
ParameterDatabaseByPointerreplaceParametersByPointers
  Replace occurences of member variables with the dereferences of pointers to the parameter database
PassiveToCyclicalreplaceSchedulerBody
  Replaces the body of schedule() function
PassiveToSporadicreplaceSchedulerBody
  Replaces the body of schedule() function
SetParametertargetFloatExprSetter
  Replace float member variable with the pDB->setParameter() method call
GetParametertargetFloatNameGetter
  Replace float member variable with the pDB->getParameterFloat() method call
ParameterDatabaseByPointertargetFloatVarInitialization
  Initialize float* pointers to the parameter database by value returned by the method pDB->getParameterPointerFloat(PDxxx) where "xxx" is member variable name in upper case
SetParametertargetIntExprSetter
  Replace integer member variable with the pDB->setParameter() method call
GetParametertargetIntNameGetter
  Replace integer member variable with the pDB->getParameterInt() method call
ParameterDatabaseByPointertargetIntVarInitialization
  Initialize int* pointers to the parameter database by value returned by the method pDB->getParameterPointerInt(PDxxx) where "xxx" is member variable name in upper case
ThreadSafetyUnlockMutex