com.partnersoft.v3x.apps.Staker.domain
Class StakingNodeCommands

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.domain.StakingNodeCommands

public class StakingNodeCommands
extends java.lang.Object

A factory for StakingNodeCommands. Encapsulates the interactive logic of manipulation of StakingNodes.


Constructor Summary
StakingNodeCommands()
           
 
Method Summary
static Command createDeleteNodeCommand(java.util.Set set, StakingNode victim)
          Returns a command object that, when invoked, deletes the indicated StakingNode from a set.
static Command createMoveNodeCommand(StakingNode victim, Coord3D newCoord)
          Returns a command object that, when invoked, moves the indicated StakingNode to a new coordinate.
static Command createReparentNodeCommand(StakingNode victim, StakingNode newParent)
          Returns a command object that, when invoked, changes a StakingNode's parent to another specified StakingNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StakingNodeCommands

public StakingNodeCommands()
Method Detail

createReparentNodeCommand

public static Command createReparentNodeCommand(StakingNode victim,
                                                StakingNode newParent)
Returns a command object that, when invoked, changes a StakingNode's parent to another specified StakingNode.


createDeleteNodeCommand

public static Command createDeleteNodeCommand(java.util.Set set,
                                              StakingNode victim)
Returns a command object that, when invoked, deletes the indicated StakingNode from a set.


createMoveNodeCommand

public static Command createMoveNodeCommand(StakingNode victim,
                                            Coord3D newCoord)
Returns a command object that, when invoked, moves the indicated StakingNode to a new coordinate.