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

jadex.bridge.service.annotation.CheckState Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.267
Show 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 - 2024 Weber Informatics LLC | Privacy Policy