Package fr.ifremer.isisfish.aspect
Class RuleAspect
java.lang.Object
fr.ifremer.isisfish.aspect.RuleAspect
Aspect utilisé pour intersepecter les appels a
Rule.init(SimulationContext), Rule.preAction(SimulationContext, TimeStep, Metier),
Rule.postAction(SimulationContext, TimeStep, Metier) et mémoriser
le temps mit.- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitCall(org.aspectj.lang.ProceedingJoinPoint jp) Aspect aroundRule.init(SimulationContext)in packages "rules".initPostCall(org.aspectj.lang.ProceedingJoinPoint jp) Aspect aroundRule.postAction(SimulationContext, TimeStep, Metier)in packages "rules".initPreCall(org.aspectj.lang.ProceedingJoinPoint jp) Aspect aroundRule.preAction(SimulationContext, TimeStep, Metier)in packages "rules".protected ObjectmakeTimedCall(org.aspectj.lang.ProceedingJoinPoint jp, int state) Effectue l'appel reel en calculant le temps pris.protected voidregisterTime(org.aspectj.lang.JoinPoint jp, int state, long timeTaken) Add time (init/pre/post) to simulation information in currentSimulationContext.
-
Constructor Details
-
RuleAspect
public RuleAspect()
-
-
Method Details
-
initCall
Aspect aroundRule.init(SimulationContext)in packages "rules".- Parameters:
jp- join point- Returns:
- init result
- Throws:
Throwable
-
initPreCall
Aspect aroundRule.preAction(SimulationContext, TimeStep, Metier)in packages "rules".- Parameters:
jp- join point- Returns:
- preAction result
- Throws:
Throwable
-
initPostCall
Aspect aroundRule.postAction(SimulationContext, TimeStep, Metier)in packages "rules".- Parameters:
jp- join point- Returns:
- preAction result
- Throws:
Throwable
-
makeTimedCall
Effectue l'appel reel en calculant le temps pris.- Parameters:
jp- join pointstate- state- Returns:
- target joint point method result
- Throws:
Throwable
-
registerTime
protected void registerTime(org.aspectj.lang.JoinPoint jp, int state, long timeTaken) Add time (init/pre/post) to simulation information in currentSimulationContext.- Parameters:
jp- join pointstate- statetimeTaken- time taken bystate
-