cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric
Enum Place

Package class diagram package Place
java.lang.Object
  extended by java.lang.Enum<Place>
      extended by cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric.Place
All Implemented Interfaces:
Serializable, Comparable<Place>

public enum Place
extends Enum<Place>

Holds anotated places in the map EmohawkVille. TODO - needs check.

Author:
knight

Enum Constant Summary
BARBARA_HOME
           
CINEMA
           
EMOHAWK_ROAM_LOCATION
           
NATALY_HOME
           
NATALY_WAIT_PLACE
           
PARK
           
RESTAURANT
           
SCEN_LONE_MEETING_POINT
           
SPHERE
           
THOMAS_HOME
           
 
Method Summary
 Location getPlaceLocation()
           
 double getPlaceRadius()
           
 boolean placeReached(Location location)
           
 boolean placeReached(Location location, double epsilon)
           
static Place valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Place[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BARBARA_HOME

public static final Place BARBARA_HOME

NATALY_HOME

public static final Place NATALY_HOME

NATALY_WAIT_PLACE

public static final Place NATALY_WAIT_PLACE

SCEN_LONE_MEETING_POINT

public static final Place SCEN_LONE_MEETING_POINT

EMOHAWK_ROAM_LOCATION

public static final Place EMOHAWK_ROAM_LOCATION

THOMAS_HOME

public static final Place THOMAS_HOME

RESTAURANT

public static final Place RESTAURANT

CINEMA

public static final Place CINEMA

PARK

public static final Place PARK

SPHERE

public static final Place SPHERE
Method Detail

values

public static Place[] 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 (Place c : Place.values())
    System.out.println(c);

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

valueOf

public static Place 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

getPlaceLocation

public Location getPlaceLocation()

getPlaceRadius

public double getPlaceRadius()

placeReached

public boolean placeReached(Location location)

placeReached

public boolean placeReached(Location location,
                            double epsilon)


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