![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Test the PortInstance class. More...
Public Member Functions | |
| void | createRange () throws Exception |
| void | multiportDestination () throws Exception |
Protected Member Functions | |
| 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.
|
protected |
Clear connections.
This recursively clears them for all contained reactors.
|
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.
| 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. |
|
protected |
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.
| src | The sending port. |
| dst | The receiving port. |
| void org.lflang.tests.compiler.PortInstanceTests.createRange | ( | ) | throws Exception |
| void org.lflang.tests.compiler.PortInstanceTests.multiportDestination | ( | ) | throws Exception |
|
protected |
|
protected |
|
protected |
|
protected |
Return a new reaction triggered by the specified port.
| trigger | The triggering port. |
|
protected |