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

Static Public Member Functions

static void main (String[] args)
 

Detailed Description

Definition at line 29 of file WithTank.java.

Member Function Documentation

◆ main()

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

Definition at line 31 of file WithTank.java.

32  {
33  ///
34  ApplyFunction to_number = new ApplyFunction(Numbers.numberCast);
35  Tank tank = new Tank();
36  Cumulate sum = new Cumulate(
37  new CumulativeFunction<Number>(Numbers.addition));
38  Connector.connect(to_number, tank, sum);
39  ///
40  //!
41  Pushable ps = to_number.getPushableInput();
42  Pullable pl = sum.getPullableOutput();
43  ps.push("1");
44  ps.push("2");
45  System.out.println(pl.pull());
46  System.out.println(pl.pull());
47  System.out.println(pl.pull());
48  //!
49  }

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