/** * Returns the contained {@link InteractionEvent}, if necessary updated with the * {@link #advise(String, InteractionAdvisorFacet) advice} of the interactions. * * <p> * That is, if still {@link State#ADVISING advising}, then copies over the details from this result into * the contained {@link InteractionEvent}, and flips into {@link State#ADVISED advised (done)}. * * @return */ public InteractionEvent getInteractionEvent() { if (state == State.ADVISING) { interactionEvent.advised(getReason(), getAdvisorFacetClass()); state = State.ADVISED; } return interactionEvent; }
/** * Returns the contained {@link InteractionEvent}, if necessary updated with the * {@link #advise(String, InteractionAdvisorFacet) advice} of the interactions. * * <p> * That is, if still {@link State#ADVISING advising}, then copies over the details from this result into * the contained {@link InteractionEvent}, and flips into {@link State#ADVISED advised (done)}. * * @return */ public InteractionEvent getInteractionEvent() { if (state == State.ADVISING) { interactionEvent.advised(getReason(), getAdvisorFacetClass()); state = State.ADVISED; } return interactionEvent; }