planet.behaviour
Class BehavioursPoolFactoryImpl

java.lang.Object
  extended by planet.behaviour.BehavioursPoolFactoryImpl
All Implemented Interfaces:
java.io.Serializable, BehavioursPoolFactory

public class BehavioursPoolFactoryImpl
extends java.lang.Object
implements BehavioursPoolFactory

This class provides an implementation of BehavioursPoolFactory's interface.

Author:
Marc Sanchez
See Also:
Serialized Form

Field Summary
protected  BehavioursPool beh
           
 
Constructor Summary
BehavioursPoolFactoryImpl(java.lang.Class behavioursPoolClass, BehaviourProperties behProps, java.lang.Class nodeClass)
           
 
Method Summary
 BehavioursPool buildBehavioursPool()
          Builds a BehaviourPool with the actual configuration on Behaviour.properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beh

protected BehavioursPool beh
Constructor Detail

BehavioursPoolFactoryImpl

public BehavioursPoolFactoryImpl(java.lang.Class behavioursPoolClass,
                                 BehaviourProperties behProps,
                                 java.lang.Class nodeClass)
                          throws InitializationException
Throws:
InitializationException
Method Detail

buildBehavioursPool

public BehavioursPool buildBehavioursPool()
                                   throws InitializationException
Builds a BehaviourPool with the actual configuration on Behaviour.properties file.

Specified by:
buildBehavioursPool in interface BehavioursPoolFactory
Returns:
A reference to BehavioursPool.
Throws:
InitializationException - when an error occurs during the initialization of the Behaviours pool or when this factory method is nonapplicable.