edu.ucsb.cs.jicos.services.external.services.fibonacci
Class Fibonacci
java.lang.Object
edu.ucsb.cs.jicos.services.Task
edu.ucsb.cs.jicos.services.external.services.fibonacci.Fibonacci
- All Implemented Interfaces:
- edu.ucsb.cs.jicos.services.external.XmlConverter, java.io.Serializable
public final class Fibonacci
- extends Task
- implements edu.ucsb.cs.jicos.services.external.XmlConverter
- See Also:
- Serialized Form
| Fields inherited from class edu.ucsb.cs.jicos.services.Task |
ALL_INPUTS |
| Fields inherited from interface edu.ucsb.cs.jicos.services.external.XmlConverter |
NAMESPACE, STYLESHEET_Html, STYLESHEET_Unknown, STYLESHEET_Xml |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Fibonacci
public Fibonacci(int n)
Fibonacci
public Fibonacci()
execute
public java.lang.Object execute(Environment environment)
- Description copied from class:
Task
- This method implements the computation encapsulated by this task. The method is
the Task class's reason for being.
- Specified by:
execute in class Task
- Parameters:
environment - The task's environment: The computation's immutable input &
its Shared Object, if any.
- Returns:
- The returned
Object is either the execute method's computed value
xor
a (compose) Task. In the latter case, the compose task takes the output from this
task's subtasks, and composes it to create this task's output.
This, at least, is the intent of this method's returned value.
setN
public void setN(int n)
getN
public int getN()
toXml
public java.lang.String toXml(java.lang.String prefix)
- Specified by:
toXml in interface edu.ucsb.cs.jicos.services.external.XmlConverter
fromXml
public boolean fromXml(ExternalData externalData)
- Specified by:
fromXml in interface edu.ucsb.cs.jicos.services.external.XmlConverter
createInput
public java.lang.Object createInput(ExternalData externalData)
- Specified by:
createInput in interface edu.ucsb.cs.jicos.services.external.XmlConverter
createShared
public Shared createShared(ExternalData externalData)
- Specified by:
createShared in interface edu.ucsb.cs.jicos.services.external.XmlConverter
createResult
public XmlDocument createResult(java.lang.Object result)
throws java.lang.Exception
- Specified by:
createResult in interface edu.ucsb.cs.jicos.services.external.XmlConverter
- Throws:
java.lang.Exception
getStyleSheet
public org.w3c.dom.Document getStyleSheet(int styleSheetType)
- Specified by:
getStyleSheet in interface edu.ucsb.cs.jicos.services.external.XmlConverter
toHtmlString
public java.lang.String toHtmlString(XmlDocument xmlResult,
java.lang.String hostPort)
- Specified by:
toHtmlString in interface edu.ucsb.cs.jicos.services.external.XmlConverter
Jicos: http://cs.ucsb.edu/projects/jicos