public class Operation extends Scope
parameters
Constructor and Description |
---|
Operation()
Creates a default Operation.
|
Operation(java.lang.String name)
Creates a named Operation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Event event)
Reports whether this Operation accepts an Event in the current Memory
state.
|
Operation |
addScenario(Scenario scenario)
Adds a Scenario to this Operation.
|
protected void |
checkBindings(Notice topInfo,
Notice opInfo)
Checks that the Input values of this Operation are bound to some
suggested values in the Binding clause.
|
Operation |
checkCompleteness(Notice topInfo)
Checks this Operation for completeness under all memory and input
conditions.
|
boolean |
fireEvent(Event event)
Fires an event on this Operation.
|
java.util.Set<Failure> |
getFailures()
Returns the set of Failures of this Operation.
|
java.util.Set<Input> |
getInputs()
Returns the set of Inputs in this Operation.
|
java.util.Set<Output> |
getOutputs()
Returns the set of Outputs in this Operation.
|
protected java.util.Set<Predicate> |
getPartitions(Notice opInfo)
Returns the possible symbolic input partitions for this Operation.
|
Scenario |
getScenario(Event event)
Returns the Scenario corresponding to the supplied Event.
|
Scenario |
getScenario(java.lang.String name)
Returns the Scenario with the specified unique name, if it exists.
|
java.util.Set<Scenario> |
getScenarios()
Returns this Operation's Scenarios as an ordered Set.
|
boolean |
isCreation()
Reports whether this Operation is the initial service creation step.
|
boolean |
isFailure()
Reports whether this Operation represents an exceptional failure step.
|
Operation |
resolve(Scope scope)
Cause this Operation to resolve its global/local Parameter references.
|
java.lang.String |
toString()
Returns a printed representation of this Operation.
|
addParameter, addScope, getParameter, getParameters, unbind
equals, getName, hashCode, setName, setName
safeEquals, safeHashCode, semanticError
public Operation()
public Operation(java.lang.String name)
name
- the name of this Operation.public boolean isCreation()
public boolean isFailure()
public java.util.Set<Input> getInputs()
public java.util.Set<Output> getOutputs()
public java.util.Set<Failure> getFailures()
public Operation resolve(Scope scope)
scope
- a Scope containing global Parameters.public Operation addScenario(Scenario scenario)
scenario
- the Scenario to add.public Scenario getScenario(java.lang.String name)
name
- the name of the Scenario.public java.util.Set<Scenario> getScenarios()
public Scenario getScenario(Event event)
event
- the Event.public boolean accept(Event event)
event
- the Event.public boolean fireEvent(Event event)
event
- an Event.public Operation checkCompleteness(Notice topInfo)
topInfo
- the Notice to which global warnings are attached.protected java.util.Set<Predicate> getPartitions(Notice opInfo)
opInfo
- the Notice reporting on this Operation.protected void checkBindings(Notice topInfo, Notice opInfo)
topInfo
- the top-level Notice for the Protocol.opInfo
- the local Notice for this Operation.