class CollectUI
The CollectUI process provides a means of displaying a graphical representation of the result of a calculation. It uses two further internal processes that provide the required parallel functionality of the interface. The process utilises the ActiveCanvas process contained in org.jcsp.awt and the associated DisplayList and GraphicsCommands.
Methods required by class resultClassName: initClass( initialData ) updateDisplayList( inputObject ) finalise( finaliseData ) Behaviour: (implemented in GUImanager) resultsClass.initClass(initData) o = input.read() while ( o != UniversalTerminator ) resultClass.updateDisplayList(o) o = input.read() resultsClass.finalise(finaliseData)
input
- the channel from which incoming data objects are readguiDetails
- A ResultDetails object specifying the result object in which
the rCollectmethod updates a DisplayList. It MUST be specified
The canvas window does not close and thus the process network does not terminate. It has to be closed by closing the Canvas Window. As such the normal means of timing a network does not work so the user interface processes do the timing to provide an approximation of the length of time. The idea of timing something that includes a display is, in any case, somewhat dubious as the time will be greatly influenced by the slowness of the display mechanism itself.
Type | Name and description |
---|---|
ResultDetails |
guiDetails |
ChannelInput |
input |
Constructor and description |
---|
CollectUI
() |
GPP - Groovy Parallel Patterns generated 06112016 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk