All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.squirrelframework.foundation.fsm.ActionWrapper Maven / Gradle / Ivy

Go to download

foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.

There is a newer version: 0.3.10
Show newest version
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