Class AltTest

  • All Implemented Interfaces:
    CSProcess

    public class AltTest
    extends java.lang.Object
    implements CSProcess

    Process Diagram

    External View

      _________
     |         |
     | AltTest |
     |_________|
     

    Internal View

      ________________________________________________
     |      _____           _____           _____     |
     |     |     |         |     |         |     |    |
     |     | Nos |         | Nos |         | Nos |    |
     |     |_____|         |_____|         |_____|    |
     |        |               |               |       |
     |      a v             b v             c v       |
     |  ______|_____    ______|_____    ______|_____  |
     | |            |  |            |  |            | |
     | | FixedDelay |  | FixedDelay |  | FixedDelay | |
     | |____________|  |____________|  |____________| |
     |        |               |               |       |
     |      d v             e v             f v       |
     |        |               |               |       |
     |        +----->-----+   |   +-----<-----+       |
     |                  __|___|___|_       _________  |
     |                 |            |  g  |         | |
     |                 |            |-->--| Printer | |
     |                 |____________|     |_________| |
     |                                                |
     |                                        AltTest |
     |________________________________________________|
     

    Description

    The AltTest process is designed to test the Alternative class.

    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.

    • Constructor Summary

      Constructors 
      Constructor Description
      AltTest()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] argv)
      Main entry point for the application.
      void run()
      The main body of this process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AltTest

        public AltTest()
    • Method Detail

      • run

        public void run()
        The main body of this process.
        Specified by:
        run in interface CSProcess
      • main

        public static void main​(java.lang.String[] argv)
        Main entry point for the application.