public abstract class Procedure extends Object implements Behaviour, Consumer, Producer
Producer's output
to a Procedure's input. Producers are typically interaction units or procedures themselves.| Modifier and Type | Field and Description |
|---|---|
protected InteractionCoordinator |
coordinator |
static Precondition |
NOT_GUARDED |
protected Precondition |
precondition |
protected DialogState |
statementScope |
| Constructor and Description |
|---|
Procedure(QName id) |
Procedure(QName id,
QName justification) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesConsume() |
boolean |
doesConsume(Resource<ResourceType> resource)
Does consume if the resource and the origin (if given) matches.
|
boolean |
doesProduce() |
boolean |
doesProduce(Resource<ResourceType> resource) |
boolean |
equals(Object o) |
ModelDrivenCommand |
getCommand() |
QName |
getId()
The ID corresponds to a Resource of the behaviour model
|
Set<Resource<ResourceType>> |
getInputs() |
QName |
getJustification()
The justification for the selection of a behaviour.
|
Set<Resource<ResourceType>> |
getOutputs() |
ProcedureRuntimeAPI |
getRuntimeAPI() |
int |
hashCode() |
void |
setCommand(ModelDrivenCommand command) |
void |
setInputs(Resource<ResourceType>... resources) |
void |
setOutputs(Resource<ResourceType>... resources) |
void |
setPrecondition(Precondition precondition) |
void |
setRuntimeAPI(ProcedureRuntimeAPI runtimeAPI) |
protected InteractionCoordinator coordinator
protected DialogState statementScope
protected Precondition precondition
public static final Precondition NOT_GUARDED
public Procedure(QName id)
public void setCommand(ModelDrivenCommand command)
public void setPrecondition(Precondition precondition)
public QName getJustification()
BehaviourgetJustification in interface Behaviourpublic ModelDrivenCommand getCommand()
public QName getId()
Behaviourpublic boolean doesConsume()
doesConsume in interface Consumerpublic boolean doesProduce()
doesProduce in interface Producerpublic boolean doesConsume(Resource<ResourceType> resource)
doesConsume in interface SupportsConsumptionresource - the actual resource to be consumedpublic Set<Resource<ResourceType>> getInputs()
public void setInputs(Resource<ResourceType>... resources)
public boolean doesProduce(Resource<ResourceType> resource)
doesProduce in interface SupportsProductionpublic void setOutputs(Resource<ResourceType>... resources)
setOutputs in interface Producerpublic Set<Resource<ResourceType>> getOutputs()
getOutputs in interface Producerpublic void setRuntimeAPI(ProcedureRuntimeAPI runtimeAPI)
public ProcedureRuntimeAPI getRuntimeAPI()
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.