P_DYNAMIC
porthhole attribute.
receiveData
and sendData
methods explicitly. Note that the receiveData
method must be used to initialize outputs. For static ports, the receiveData
and sendData
methods are invoked implicitly and should not be used in the go method.Because a separate thread of execution is created for each star, the
go
method of a PN star is not required to terminate. As a programmer, you are free to use infinite loops, such as while(TRUE) { ... }
within the go
method of your PN stars. This may be necessary if you access a porthole (requiring a blocking read) before entering the main loop of the process. In the future, such code could be placed in the star's begin
method, but currently (as of release 0.6) the begin
method is executed before the star's thread is created.
run
method of DataFlowProcess
to repeatedly invoke the star's go
method.