Package com.embabel.agent.api.common
Class TransformationKt
-
- All Implemented Interfaces:
public final class TransformationKt
-
-
Method Summary
Modifier and Type Method Description final static <I extends Any, O extends Any> Transformation<I, O>asTransformation(Agent agent, Class<O> outputClass)final static <I extends Any, O extends Any> Transformation<I, O>asTransformation(Agent $self)Creates a transformation action from an agent final static <I extends Any, O extends Any> ActionasAction(Agent $self)Expose this agent as an action of the given transformation type final static <I extends Any, O extends Any> ActionasAction(String agentName, Class<I> inputClass, Class<O> outputClass, List<String> pre, List<String> post, Double cost, Double value, Boolean canRerun)Expose the named agent as an action of the given transformation type final static <I extends Any, O extends Any> ActionasAction(String agentName)final static <I extends Any, O extends Any> ActionagentTransformer(Agent agent)final static <I extends Any, O extends Any> ActionagentTransformer(Agent agent, List<String> pre, List<String> post, Double cost, Double value, Boolean canRerun, Class<I> inputClass, Class<O> outputClass)-
-
Method Detail
-
asTransformation
final static <I extends Any, O extends Any> Transformation<I, O> asTransformation(Agent agent, Class<O> outputClass)
-
asTransformation
final static <I extends Any, O extends Any> Transformation<I, O> asTransformation(Agent $self)
Creates a transformation action from an agent
-
asAction
final static <I extends Any, O extends Any> Action asAction(Agent $self)
Expose this agent as an action of the given transformation type
-
asAction
final static <I extends Any, O extends Any> Action asAction(String agentName, Class<I> inputClass, Class<O> outputClass, List<String> pre, List<String> post, Double cost, Double value, Boolean canRerun)
Expose the named agent as an action of the given transformation type
-
agentTransformer
final static <I extends Any, O extends Any> Action agentTransformer(Agent agent)
-
-
-
-