com.md5importer.control
Class MD5NodeController

java.lang.Object
  extended by com.md5importer.control.AbstractController
      extended by com.md5importer.control.MD5NodeController
All Implemented Interfaces:
IController, IMD5NodeController, IObserver

public class MD5NodeController
extends AbstractController
implements IMD5NodeController

MD5NodeController defines the concrete implementation of a concurrent controller unit that is responsible for updating the IMD5Node given at construction time with active IMD5Anim.

MD5NodeController uses lazy initialization on the temporary blending records since the blending utility may never be used.


Field Summary
 
Fields inherited from class com.md5importer.control.AbstractController
active
 
Constructor Summary
MD5NodeController(IMD5Node node)
          Constructor of MD5NodeController.
 
Method Summary
 IMD5Anim getActiveAnim()
          Retrieve the current active animation.
 void setActiveAnim(IMD5Anim anim)
          Set the active animation.
 void update(float interpolation)
          Update the controller.
 void update(IObservable observable)
          Update the observer based on given modified observable.
 
Methods inherited from class com.md5importer.control.AbstractController
isActive, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.md5importer.interfaces.control.IController
isActive, setActive
 

Constructor Detail

MD5NodeController

public MD5NodeController(IMD5Node node)
Constructor of MD5NodeController.

Parameters:
node - The IMD5Node to control.
Method Detail

update

public void update(float interpolation)
Description copied from interface: IController
Update the controller.

Specified by:
update in interface IController
Parameters:
interpolation - The Float time interpolation.

update

public void update(IObservable observable)
Description copied from interface: IObserver
Update the observer based on given modified observable.

Specified by:
update in interface IObserver
Parameters:
observable - The modified IObservable.

setActiveAnim

public void setActiveAnim(IMD5Anim anim)
Description copied from interface: IMD5NodeController
Set the active animation.

This invocation registers this controller as an observer to the given animation observable unit and unregisters itself from the previous active animation.

Specified by:
setActiveAnim in interface IMD5NodeController
Parameters:
anim - The IMD5Anim to be set.

getActiveAnim

public IMD5Anim getActiveAnim()
Description copied from interface: IMD5NodeController
Retrieve the current active animation.

Specified by:
getActiveAnim in interface IMD5NodeController
Returns:
The current active IMD5Anim.