jactor
Class UnaryIntFunction

java.lang.Object
  extended by jactor.Actor
      extended by jactor.UnaryIntFunction
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Carre

public abstract class UnaryIntFunction
extends Actor

Author:
J.Ferber A simple actor class which abstract all unary function from int to int Subclasse must only redefine the method compute

Field Summary
(package private)  int parameter
           
(package private)  int result
           
 
Fields inherited from class jactor.Actor
debug, living, messages, thread
 
Constructor Summary
UnaryIntFunction()
           
 
Method Summary
abstract  void compute()
           
 void handleMessage(Message m)
           
 
Methods inherited from class jactor.Actor
defaultHandleMessage, getMessageBoxSize, isDebug, isMessageBoxEmpty, kill, nextMessage, pause, receiveMessage, run, sendMessage, setDebug, waitNextMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

int result

parameter

int parameter
Constructor Detail

UnaryIntFunction

public UnaryIntFunction()
Method Detail

compute

public abstract void compute()

handleMessage

public void handleMessage(Message m)
Overrides:
handleMessage in class Actor