Package jadex.tools.comanalyzer.graph
Class VertexTransformer.Label
- java.lang.Object
-
- jadex.tools.comanalyzer.graph.VertexTransformer.Label
-
- All Implemented Interfaces:
org.apache.commons.collections15.Transformer
- Enclosing class:
- VertexTransformer
public static final class VertexTransformer.Label extends java.lang.Object implements org.apache.commons.collections15.Transformer
A Transformer for creating labels for agent groups.
-
-
Constructor Summary
Constructors Constructor Description Label()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
setEnabled(boolean enabled)
Enable/disable the transformer.java.lang.Object
transform(java.lang.Object group)
Transform an agent group into a String.
-
-
-
Method Detail
-
transform
public java.lang.Object transform(java.lang.Object group)
Transform an agent group into a String. Returns the id of the agent.- Specified by:
transform
in interfaceorg.apache.commons.collections15.Transformer
- Parameters:
group
- The agent group.- Returns:
- The String for the label.
-
setEnabled
public void setEnabled(boolean enabled)
Enable/disable the transformer.- Parameters:
enabled
-true
if the transformer ought to be enabled.
-
isEnabled
public boolean isEnabled()
- Returns:
true
if the transformer is enabled.
-
-