All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.patternity.graphic.behavioral.Note Maven / Gradle / Ivy

Go to download

Extensions of the RestFixture. An extension is a RestFixture with some specific/bespoke behaviour not generic enough to make it to the RestFixture itself.

The newest version!
package com.patternity.graphic.behavioral;

/**
 * Represents a note with a label that can be assigned to one agent or overall
 * for every agent.
 * 
 * @author cyrille martraire
 */
public class Note extends Event {

	private final String label;

	public Note(String label) {
		this(Agent.ALL, label);
	}

	public Note(Agent agent, String label) {
		super(0, agent);
		this.label = label;
	}

	public String getLabel() {
		return label;
	}

	public String toString() {
		return getTarget().isAll() ? getLabel() : getTarget() + ": " + getLabel();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy