public interface PortCodeGenerator
| Red (cxh) |
| Red (cxh) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateGetCode(java.lang.String channel,
java.lang.String offset)
Generate the code to get a token from a port.
|
java.lang.String |
generateHasTokenCode(java.lang.String channel,
java.lang.String offset)
Generates code to check the receiver has a token.
|
java.lang.String |
generatePutCode(java.lang.String channel,
java.lang.String offset,
java.lang.String dataToken)
Generate the code to put a token to a port.
|
java.lang.String |
generatePutLocalInsideCode(java.lang.String channel,
java.lang.String offset,
java.lang.String dataToken)
Generate the code to put a token to a port's local inside receivers.
|
java.lang.String generateGetCode(java.lang.String channel,
java.lang.String offset)
throws IllegalActionException
channel - The channel for which the get code is generated.offset - The offset in the array representation of the port.IllegalActionException - If the director adapter class cannot be found.java.lang.String generatePutCode(java.lang.String channel,
java.lang.String offset,
java.lang.String dataToken)
throws IllegalActionException
channel - The channel for which the send code is generated.offset - The offset in the array representation of the port.dataToken - The token to be sentIllegalActionException - If the director adapter class cannot be found.java.lang.String generatePutLocalInsideCode(java.lang.String channel,
java.lang.String offset,
java.lang.String dataToken)
throws IllegalActionException
channel - The channel for which the send code is generated.offset - The offset in the array representation of the port.dataToken - The token to be sentIllegalActionException - If the director adapter class cannot be found.java.lang.String generateHasTokenCode(java.lang.String channel,
java.lang.String offset)
throws IllegalActionException
channel - The channel for which the get code is generated.offset - The offset in the array representation of the port.IllegalActionException - If code can't be generated.