|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.plugNplay.Fibonacci
public class Fibonacci
This generates the Fibonacci sequence on its output channel.
___________ | | out | Fibonacci |------> |___________|
________________________________ | | | ____________ ________ | | | | | | | out | |Prefix (0)
|-->--|Delta2
|------>-- | |____________| |________| | | | | | | ^ V | | ______|_____ ___|___ | | | | | | | | |Prefix (1)
|--<--|Pairs
| | | |____________| |_______| | | | | Fibonacci | |________________________________|
Output Channels | ||
---|---|---|
out | java.lang.Integer | The output will always be of type Integer. |
Constructor Summary | |
---|---|
Fibonacci(ChannelOutput out)
Construct a new Fibonacci process with the output Channel out. |
Method Summary | |
---|---|
void |
run()
The main body of this process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Fibonacci(ChannelOutput out)
out
- the output channelMethod Detail |
---|
public void run()
run
in interface CSProcess
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |