artisynth.core.mechmodels
Enum MotionTarget.TargetActivity

java.lang.Object
  extended by java.lang.Enum<MotionTarget.TargetActivity>
      extended by artisynth.core.mechmodels.MotionTarget.TargetActivity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MotionTarget.TargetActivity>
Enclosing class:
MotionTarget

public static enum MotionTarget.TargetActivity
extends java.lang.Enum<MotionTarget.TargetActivity>


Enum Constant Summary
Auto
          Position and velocity targets are both initially inactive, but will each be activated when a value is set for them
None
          Position and velocity targets are both inactive
Position
          Position target is active, velocity target is inactive
PositionVelocity
          Position and velocity targets are both active
Velocity
          Velocity target is active, position target is inactive
 
Method Summary
static MotionTarget.TargetActivity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MotionTarget.TargetActivity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Position

public static final MotionTarget.TargetActivity Position
Position target is active, velocity target is inactive


Velocity

public static final MotionTarget.TargetActivity Velocity
Velocity target is active, position target is inactive


PositionVelocity

public static final MotionTarget.TargetActivity PositionVelocity
Position and velocity targets are both active


None

public static final MotionTarget.TargetActivity None
Position and velocity targets are both inactive


Auto

public static final MotionTarget.TargetActivity Auto
Position and velocity targets are both initially inactive, but will each be activated when a value is set for them

Method Detail

values

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

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

valueOf

public static MotionTarget.TargetActivity valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null