All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----test.jcsp.AltTest
_________ | | | AltTest | |_________|
________________________________________________ | _____ _____ _____ | | | | | | | | | | | Nos | | Nos | | Nos | | | |_____| |_____| |_____| | | | | | | | a v b v c v | | ______|_____ ______|_____ ______|_____ | | | | | | | | | | | FixedDelay | | FixedDelay | | FixedDelay | | | |____________| |____________| |____________| | | | | | | | d v e v f v | | | | | | | +----->-----+ | +-----<-----+ | | __|___|___|_ _________ | | | | g | | | | | |-->--| Printer | | | |____________| |_________| | | | | AltTest | |________________________________________________|
Each of the fixed delay processes have a delay time of 100, 200 or 300 microseconds.
The anonymous CSProcess has an infinite loop which will ALT on the channels d, e & f. When one of these Channels becomes ready with data the process will write the index of the Channel and the data value down the g Channel.
public AltTest()
public void run()
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index