
jadex.bridge.service.annotation.CheckState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-bridge Show documentation
Show all versions of jadex-bridge Show documentation
Jadex bridge is a base package for kernels and platforms,
i.e. it is used by both and provides commonly used
interfaces and classes for active components and
their management.
The newest version!
package jadex.bridge.service.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Pre or postcondition that a state is valid.
* May refer to all arguments/results.
*
* Reserved variables are $arg for the current argument
* and $arg0 - $argn for the arguments.
* In case of a post condition the result is available
* via $res and intermediate results via $res[0], $res[-1].
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.METHOD})
public @interface CheckState
{
/**
* The expression will be parsed.
*/
public String value() default "";
/**
* Flag if used as post condition for intermediate results.
*/
public boolean intermediate() default false;
/**
* Flag how many intermediate results should be preserved.
* Only necessary if a subscription future is used.
*/
public int keep() default 0;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy