com.threerings.probs
Class ColorFunctionVariable.VariableConstant

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.probs.ColorFunctionVariable
          extended by com.threerings.probs.ColorFunctionVariable.VariableConstant
All Implemented Interfaces:
Exportable, com.threerings.io.Streamable, Copyable, Cloneable
Enclosing class:
ColorFunctionVariable

public static class ColorFunctionVariable.VariableConstant
extends ColorFunctionVariable

Returns a constant function with a variable value.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.probs.ColorFunctionVariable
ColorFunctionVariable.Fixed, ColorFunctionVariable.VariableConstant, ColorFunctionVariable.VariableLinear
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Field Summary
 ColorVariable value
          The value to return.
 
Constructor Summary
ColorFunctionVariable.VariableConstant()
           
 
Method Summary
 ColorFunction getValue(ColorFunction result)
          Computes a sample value according to the variable's distribution.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

@Editable(mode="%INHERIT%")
public ColorVariable value
The value to return.

Constructor Detail

ColorFunctionVariable.VariableConstant

public ColorFunctionVariable.VariableConstant()
Method Detail

getValue

public ColorFunction getValue(ColorFunction result)
Description copied from class: ColorFunctionVariable
Computes a sample value according to the variable's distribution.

Specified by:
getValue in class ColorFunctionVariable
Parameters:
result - an object to repopulate, if possible.
Returns:
either the result object, if it could be repopulated, or a new object containing the result.


Copyright © 2011. All Rights Reserved.