Code Examples
A repository of 155 code examples for BeepBeep
basic.ProcessorIdGroup Class Reference

Example showing how the IDs of processors behave when multiple instances are created. More...

Classes

class  MyGroup
 

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Example showing how the IDs of processors behave when multiple instances are created.

Author
Sylvain Hallé Easy

Definition at line 30 of file ProcessorIdGroup.java.

Member Function Documentation

◆ main()

static void basic.ProcessorIdGroup.main ( String []  args)
static

We create a first group and look at the processor IDs

Definition at line 32 of file ProcessorIdGroup.java.

33  {
34  /// We create a first group and look at the processor IDs
35  MyGroup g1 = new MyGroup();
36  System.out.println("ID of g1: " + g1.getId());
37  System.out.println("ID inside g1: " + g1.getInstance().getId());
38  ///
39  //* We create a second group and look at the IDs. Note that they
40  // are all different from the first instance.
41  MyGroup g2 = new MyGroup();
42  System.out.println("ID of g2: " + g2.getId());
43  System.out.println("ID inside g2: " + g2.getInstance().getId());
44  //*
45  }

The documentation for this class was generated from the following file: