Code Examples
A repository of 155 code examples for BeepBeep
|
Pipe processors with non-matching event types. More...
Static Public Member Functions | |
static void | main (String[] args) |
Pipe processors with non-matching event types.
Doing this in BeepBeep causes a ConnectorException to be thrown. This example shows what happens in that case. The chain of processors in this example can be represented graphically as:
The expected output of this program should look like this:
Exception in thread "main" ca.uqac.lif.cep.Connector$IncompatibleTypesException: Cannot connect output 0 of ABS to input 0 of ¬: incompatible types at ca.uqac.lif.cep.Connector.checkForException(Connector.java:357) at ca.uqac.lif.cep.Connector.connect(Connector.java:148) at ca.uqac.lif.cep.Connector.connect(Connector.java:279) at ca.uqac.lif.cep.Connector.connect(Connector.java:251) at basic.IncorrectPiping.main(IncorrectPiping.java:42)
If we refer to the picture, the exception is raised when attempting to connect the output of the first function processor (turquoise, representing a number) to the input of the second function processor (light blue, representing a Boolean).
Definition at line 54 of file IncorrectPiping.java.
|
static |
Create a simple source with a single numerical event
Definition at line 56 of file IncorrectPiping.java.