org.semispace.googled.external
Class TokenProxyActor

java.lang.Object
  extended by org.semispace.actor.Actor
      extended by org.semispace.googled.external.TokenProxyActor

public class TokenProxyActor
extends Actor


Constructor Summary
TokenProxyActor(SemiSpaceTokenProxy tokenSpace)
           
 
Method Summary
 Object[] getTakeTemplates()
          Default implementation which renders an empty array, ie nothing is tried taken.
 void receive(ActorMessage msg)
          Receive a message which either matches the template, or that is addressed to this actor in particular (which implies that you need to check the type for each message).
 
Methods inherited from class org.semispace.actor.Actor
getActorId, getDefaultLifeMsOfSpaceObject, getReadTemplates, register, register, send, send, setDefaultLifeMsOfSpaceObject, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenProxyActor

public TokenProxyActor(SemiSpaceTokenProxy tokenSpace)
Method Detail

receive

public void receive(ActorMessage msg)
Description copied from class: Actor
Receive a message which either matches the template, or that is addressed to this actor in particular (which implies that you need to check the type for each message).

Specified by:
receive in class Actor

getTakeTemplates

public Object[] getTakeTemplates()
Description copied from class: Actor
Default implementation which renders an empty array, ie nothing is tried taken. Exchange with relevant elements. Object are tried taken from the space. Observe that the object taken is the one that fits the template, and not necessarily the one which triggered the event.

Overrides:
getTakeTemplates in class Actor


Copyright © 2008-2012. All Rights Reserved.