Class RuleAspect

java.lang.Object
fr.ifremer.isisfish.aspect.RuleAspect

public class RuleAspect extends Object
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Constructor Details

    • RuleAspect

      public RuleAspect()
  • Method Details

    • initCall

      public Object initCall(org.aspectj.lang.ProceedingJoinPoint jp) throws Throwable
      Aspect around Rule.init(SimulationContext) in packages "rules".
      Parameters:
      jp - join point
      Returns:
      init result
      Throws:
      Throwable
    • initPreCall

      public Object initPreCall(org.aspectj.lang.ProceedingJoinPoint jp) throws Throwable
      Aspect around Rule.preAction(SimulationContext, TimeStep, Metier) in packages "rules".
      Parameters:
      jp - join point
      Returns:
      preAction result
      Throws:
      Throwable
    • initPostCall

      public Object initPostCall(org.aspectj.lang.ProceedingJoinPoint jp) throws Throwable
      Aspect around Rule.postAction(SimulationContext, TimeStep, Metier) in packages "rules".
      Parameters:
      jp - join point
      Returns:
      preAction result
      Throws:
      Throwable
    • makeTimedCall

      protected Object makeTimedCall(org.aspectj.lang.ProceedingJoinPoint jp, int state) throws Throwable
      Effectue l'appel reel en calculant le temps pris.
      Parameters:
      jp - join point
      state - 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 current SimulationContext.
      Parameters:
      jp - join point
      state - state
      timeTaken - time taken by state