org.squirrelframework.foundation.fsm.ActionWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-foundation Show documentation
Show all versions of squirrel-foundation Show documentation
foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.
package org.squirrelframework.foundation.fsm;
public class ActionWrapper, S, E, C>
implements Action {
private final Action delegator;
public ActionWrapper(Action delegator) {
this.delegator = delegator;
}
@Override
public void execute(S from, S to, E event, C context, T stateMachine) {
delegator.execute(from, to, event, context, stateMachine);
}
@Override
public String name() {
return delegator.name();
}
@Override
public int weight() {
return delegator.weight();
}
@Override
public boolean isAsync() {
return delegator.isAsync();
}
@Override
public long timeout() {
return delegator.timeout();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy