The DummyClassifier element follow this dead simple algorithm:

If packet.anno = ANNO_REQUEST Then
	output(0) <- packet
Else If packet.anno = ANNO_ANSWER Then
	output(1) <- packet
Else
	output(2) <- packet
Fi

Of course this assumes that the packet have the annotation set. Note that we use a PUSH port processing with 3 outputs.

Therefore the code pretty much writes it-self:


Previous / Outline / Next