cz.cuni.pogamut.posh.widget
Enum PoshNodeType

Package class diagram package PoshNodeType
java.lang.Object
  extended by java.lang.Enum<PoshNodeType>
      extended by cz.cuni.pogamut.posh.widget.PoshNodeType
All Implemented Interfaces:
Serializable, Comparable<PoshNodeType>

public enum PoshNodeType
extends Enum<PoshNodeType>

Enum for types of elements in the POSH tree.

Author:
Honza

Enum Constant Summary
ACT
           
ACTION_PATTERN
           
COMPETENCE
           
COMPETENCE_ELEMENT
           
DOCSTRING
           
DRIVE_COLLECTION_NODE
           
DRIVE_ELEMENT
           
GOAL
           
ROOT
           
SENSE
           
TRIGGER
           
TRIGGERED_ACTION
           
 
Method Summary
 Color getColor()
          Get color that is associated with this type of element
 String toString()
          Get description of element
static PoshNodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PoshNodeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOCSTRING

public static final PoshNodeType DOCSTRING

COMPETENCE

public static final PoshNodeType COMPETENCE

COMPETENCE_ELEMENT

public static final PoshNodeType COMPETENCE_ELEMENT

DRIVE_COLLECTION_NODE

public static final PoshNodeType DRIVE_COLLECTION_NODE

DRIVE_ELEMENT

public static final PoshNodeType DRIVE_ELEMENT

ACTION_PATTERN

public static final PoshNodeType ACTION_PATTERN

GOAL

public static final PoshNodeType GOAL

ACT

public static final PoshNodeType ACT

SENSE

public static final PoshNodeType SENSE

ROOT

public static final PoshNodeType ROOT

TRIGGER

public static final PoshNodeType TRIGGER

TRIGGERED_ACTION

public static final PoshNodeType TRIGGERED_ACTION
Method Detail

values

public static PoshNodeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PoshNodeType c : PoshNodeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PoshNodeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getColor

public Color getColor()
Get color that is associated with this type of element

Returns:
color that is representing this type of element

toString

public String toString()
Get description of element

Overrides:
toString in class Enum<PoshNodeType>
Returns:
description of element


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.