Test the PortInstance class.
More...
|
| void | clearConnections (ReactorInstance r) |
| | Clear connections.
|
| void | connect (PortInstance src, int srcStart, int srcWidth, PortInstance dst, int dstStart, int dstWidth) |
| | Connection between multiports.
|
| void | connect (PortInstance src, PortInstance dst) |
| | Simple connection of two ports.
|
| PortInstance | newInputPort (String name, ReactorInstance container) |
| PortInstance | newOutputPort (String name, ReactorInstance container) |
| PortInstance | newPort (String name, ReactorInstance container) |
| ReactionInstance | newReaction (PortInstance trigger) |
| | Return a new reaction triggered by the specified port.
|
| ReactorInstance | newReactor (String name, ReactorInstance container) |
Test the PortInstance class.
◆ clearConnections()
| void org.lflang.tests.compiler.PortInstanceTests.clearConnections |
( |
ReactorInstance | r | ) |
|
|
protected |
Clear connections.
This recursively clears them for all contained reactors.
◆ connect() [1/2]
| void org.lflang.tests.compiler.PortInstanceTests.connect |
( |
PortInstance | src, |
|
|
int | srcStart, |
|
|
int | srcWidth, |
|
|
PortInstance | dst, |
|
|
int | dstStart, |
|
|
int | dstWidth ) |
|
protected |
Connection between multiports.
This should be used only for connections that would be allowed in the syntax (i.e., no cross-hierarchy connections), but this is not checked.
- Parameters
-
| src | The sending port. |
| srcStart | The starting index of the source port range. |
| srcWidth | The width of the source port range. |
| dst | The receiving port. |
| dstStart | The starting index of the destination port range. |
| dstWidth | The width of the destination port range. |
◆ connect() [2/2]
Simple connection of two ports.
This should be used only for connections that would be allowed in the syntax (i.e., no cross-hierarchy connections), but this is not checked.
- Parameters
-
| src | The sending port. |
| dst | The receiving port. |
◆ createRange()
| void org.lflang.tests.compiler.PortInstanceTests.createRange |
( |
| ) |
throws Exception |
◆ multiportDestination()
| void org.lflang.tests.compiler.PortInstanceTests.multiportDestination |
( |
| ) |
throws Exception |
◆ newInputPort()
◆ newOutputPort()
◆ newPort()
◆ newReaction()
Return a new reaction triggered by the specified port.
- Parameters
-
| trigger | The triggering port. |
◆ newReactor()
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/test/java/org/lflang/tests/compiler/PortInstanceTests.java