Notas

Notas are Pronghorns alternative to Java annotations. We chose this approach because it avoids reflection while still providing readability. Notas allow you to “tag” your stage to modify their behavior or appearance. Please note that notas can have unexpected side effects and should be applied carefully.

Notas are always defined in the constructor of your stage. They should not be defined in startup() or any other place in your class.

Some common nota definitions are listed here:

Example

A stage constructor with a custom background color in the telemetry can look like this:

public BMPDumperStage(GraphManager graphManager, Pipe<JPGSchema> input, boolean verbose, boolean time) {
	super(graphManager, input, NONE);	
	this.input = input;​	// Use GraphManager to add a background nota to the current stage. "this" refers to the current stage.	
	GraphManager.addNota(graphManager, GraphManager.DOT_BACKGROUND, "red", this);
}

Last updated