public class CfgSignalInterface
extends java.lang.Object
Signal part of CfgInterface
interface.
This part contains interface's input and output signals.
Constructor and Description |
---|
CfgSignalInterface(java.util.Collection<ru.ispras.fortress.expression.NodeVariable> inputs,
java.util.Collection<ru.ispras.fortress.expression.NodeVariable> outputs)
Constructs object with the specified input and output signals.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsInput(java.lang.String name)
Checks whether object contains input variable with the specified name.
|
boolean |
containsOutput(java.lang.String name)
Checks whether interface object contains output variable with the specified name.
|
java.util.Collection<ru.ispras.fortress.expression.NodeVariable> |
getInputs()
Returns input signals.
|
java.util.Collection<ru.ispras.fortress.expression.NodeVariable> |
getOutputs()
Returns output signals.
|
ru.ispras.fortress.expression.NodeVariable |
getSignal(java.lang.String signalName)
Returns signal variable that is in this interface object and has the specified name.
|
public CfgSignalInterface(java.util.Collection<ru.ispras.fortress.expression.NodeVariable> inputs, java.util.Collection<ru.ispras.fortress.expression.NodeVariable> outputs)
inputs
- Input signals of the interface.outputs
- Output signals of the interface.java.lang.IllegalArgumentException
- when any of arguments is null
.public java.util.Collection<ru.ispras.fortress.expression.NodeVariable> getInputs()
public java.util.Collection<ru.ispras.fortress.expression.NodeVariable> getOutputs()
public boolean containsInput(java.lang.String name)
name
- Name of input variable.true
if object contains an input variable with the specified name,
false
otherwise.public boolean containsOutput(java.lang.String name)
name
- Name of output variable.true
if interface object contains an output variable with the specified name,
false
otherwise.public ru.ispras.fortress.expression.NodeVariable getSignal(java.lang.String signalName)
signalName
- Name of signal variable to be returned.null
if there is no such variable in this interface object.