Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Label

        public Label()
    • 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 interface org.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.