ptolemy.codegen.util
Class DynamicResult

java.lang.Object
  extended by ptolemy.codegen.util.DynamicResult
All Implemented Interfaces:
PartialResult

public class DynamicResult
extends java.lang.Object
implements PartialResult

A dynamic result. Used the PartialResult interface is used in DE code generation.

Since:
Ptolemy II 8.0
Version:
$Id: DynamicResult.java 59167 2010-09-21 17:08:02Z cxh $
Author:
Man-Kit Leung
Accepted Rating:
Red (mankit)
Proposed Rating:
Red (mankit)

Field Summary
private  java.lang.Object _result
          The result that is stored.
 
Constructor Summary
DynamicResult(java.lang.Object result)
          Create a dynamic result object.
 
Method Summary
 java.lang.Object getResult()
          Return the result.
 boolean isStatic()
          Return true if static.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_result

private java.lang.Object _result
The result that is stored.

Constructor Detail

DynamicResult

public DynamicResult(java.lang.Object result)
Create a dynamic result object.

Parameters:
result - The result to be stored.
Method Detail

getResult

public java.lang.Object getResult()
Description copied from interface: PartialResult
Return the result.

Specified by:
getResult in interface PartialResult
Returns:
the result.

isStatic

public boolean isStatic()
Return true if static. In this class, false is always returned because this result is dynamic, not static.

Specified by:
isStatic in interface PartialResult
Returns:
Always return false, indicating that this result is dynamic.