com.threerings.probs
Class ColorFunctionVariable.Fixed
java.lang.Object
com.threerings.util.DeepObject
com.threerings.probs.ColorFunctionVariable
com.threerings.probs.ColorFunctionVariable.Fixed
- All Implemented Interfaces:
- Exportable, com.threerings.io.Streamable, Copyable, Cloneable
- Enclosing class:
- ColorFunctionVariable
public static class ColorFunctionVariable.Fixed
- extends ColorFunctionVariable
Simply returns the same function.
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
com.threerings.io.Streamable.Closure |
function
@Editable(mode="%INHERIT%")
public ColorFunction function
- The function to return.
ColorFunctionVariable.Fixed
public ColorFunctionVariable.Fixed(ColorFunction function)
- Creates a fixed variable with the specified function.
ColorFunctionVariable.Fixed
public ColorFunctionVariable.Fixed()
- No-arg constructor for deserialization, etc.
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.