nz.ac.waikato.mcennis.rat.graph.actor
Class ActorFactory

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.actor.ActorFactory

public class ActorFactory
extends java.lang.Object

Class for creating Actors.


Method Summary
 Actor create(java.util.Properties props)
          Actors are created using the 'ActorClass' property to determine the class of the actor to use.
static ActorFactory newInstance()
          Return a singleton of this object, creating it if needed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static ActorFactory newInstance()
Return a singleton of this object, creating it if needed

Returns:
static singelton factory

create

public Actor create(java.util.Properties props)
Actors are created using the 'ActorClass' property to determine the class of the actor to use.

Parameters for all actors

Parameters:
props - parameters for Actors
Returns:
newly created Actor