org.jaitools.jiffle
Enum Jiffle.RuntimeModel

java.lang.Object
  extended by java.lang.Enum<Jiffle.RuntimeModel>
      extended by org.jaitools.jiffle.Jiffle.RuntimeModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Jiffle.RuntimeModel>
Enclosing class:
Jiffle

public static enum Jiffle.RuntimeModel
extends java.lang.Enum<Jiffle.RuntimeModel>

Constants for runtime model. Jiffle supports two runtime models:

  1. Direct - where the runtime class evaluate method directly sets values in the destination image(s)
  2. Indirect - where there is a single destination image and the runtime class evaluate method returns the destination value, leaving it up to the caller to set the value in the image. object
The indirect model is designed for use in an image operator or similar context where further processing of destination values might be required before writing to an image.


Enum Constant Summary
DIRECT
          The runtime class implements JiffleDirectRuntime
INDIRECT
          The runtime class implements JiffleIndirectRuntime
 
Method Summary
static Jiffle.RuntimeModel get(java.lang.Class<? extends JiffleRuntime> clazz)
          Gets the matching constant for the given runtime class.
 java.lang.Class<? extends JiffleRuntime> getRuntimeClass()
          Gets the runtime interface.
static Jiffle.RuntimeModel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Jiffle.RuntimeModel[] 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

DIRECT

public static final Jiffle.RuntimeModel DIRECT
The runtime class implements JiffleDirectRuntime


INDIRECT

public static final Jiffle.RuntimeModel INDIRECT
The runtime class implements JiffleIndirectRuntime

Method Detail

values

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

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

valueOf

public static Jiffle.RuntimeModel 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

getRuntimeClass

public java.lang.Class<? extends JiffleRuntime> getRuntimeClass()
Gets the runtime interface.

Returns:
the runtime interface

get

public static Jiffle.RuntimeModel get(java.lang.Class<? extends JiffleRuntime> clazz)
Gets the matching constant for the given runtime class.

Parameters:
clazz - a runtime class
Returns:
the contant or null if the class does not derive from a supported base class


Copyright © 2011. All Rights Reserved.