org.puremvc.java.core
Class ControllerTestCommand2

java.lang.Object
  extended by org.puremvc.java.patterns.observer.Notifier
      extended by org.puremvc.java.patterns.command.SimpleCommand
          extended by org.puremvc.java.core.ControllerTestCommand2
All Implemented Interfaces:
org.puremvc.java.interfaces.ICommand, org.puremvc.java.interfaces.INotifier

public class ControllerTestCommand2
extends org.puremvc.java.patterns.command.SimpleCommand

A SimpleCommand subclass used by ControllerTest.

See Also:
ControllerTest, ControllerTestVO

Constructor Summary
ControllerTestCommand2()
          Constructor.
 
Method Summary
 void execute(org.puremvc.java.interfaces.INotification note)
          Fabricate a result by multiplying the input by 2 and adding to the existing result This tests accumulation effect that would show if the command were executed more than once.
 
Methods inherited from class org.puremvc.java.patterns.observer.Notifier
sendNotification, sendNotification, sendNotification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.puremvc.java.interfaces.INotifier
sendNotification, sendNotification, sendNotification
 

Constructor Detail

ControllerTestCommand2

public ControllerTestCommand2()
Constructor.

Method Detail

execute

public void execute(org.puremvc.java.interfaces.INotification note)
Fabricate a result by multiplying the input by 2 and adding to the existing result

This tests accumulation effect that would show if the command were executed more than once.

Specified by:
execute in interface org.puremvc.java.interfaces.ICommand
Overrides:
execute in class org.puremvc.java.patterns.command.SimpleCommand
Parameters:
note - the note carrying the ControllerTestVO