org.metaabm.commands
Class AddAgentsActsCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.edit.command.AbstractOverrideableCommand
          extended by org.metaabm.commands.AddAgentsActsCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command, org.eclipse.emf.edit.command.OverrideableCommand
Direct Known Subclasses:
AddAgentsActsLoaderCommand

public class AddAgentsActsCommand
extends org.eclipse.emf.edit.command.AbstractOverrideableCommand

Creates acts on agent creation.

Author:
milesparker

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Constructor Summary
AddAgentsActsCommand(org.eclipse.emf.edit.domain.EditingDomain domain, org.metaabm.SContext parent, java.util.Collection<?> agents)
           
 
Method Summary
 boolean doCanExecute()
           
 void doExecute()
           
 java.util.Collection<?> doGetAffectedObjects()
           
 void doRedo()
           
 void doUndo()
           
static org.metaabm.act.ABuild findBuilderFor(org.metaabm.SAgent agent)
           
static org.metaabm.act.ABuild findBuilderOf(org.metaabm.SContext agent)
           
static org.metaabm.act.ACreateAgents findCreatorFor(org.metaabm.SAgent agent)
           
static org.metaabm.act.ACreateAgents findCreatorOf(org.metaabm.SContext context, org.metaabm.SAgent agent)
           
 
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand
canExecute, canUndo, dispose, doCanUndo, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, doGetResult, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, toString, undo
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, setDescription, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.command.Command
chain
 

Constructor Detail

AddAgentsActsCommand

public AddAgentsActsCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
                            org.metaabm.SContext parent,
                            java.util.Collection<?> agents)
Method Detail

doGetAffectedObjects

public java.util.Collection<?> doGetAffectedObjects()
Specified by:
doGetAffectedObjects in interface org.eclipse.emf.edit.command.OverrideableCommand
Overrides:
doGetAffectedObjects in class org.eclipse.emf.edit.command.AbstractOverrideableCommand

doCanExecute

public boolean doCanExecute()
Specified by:
doCanExecute in interface org.eclipse.emf.edit.command.OverrideableCommand
Overrides:
doCanExecute in class org.eclipse.emf.edit.command.AbstractOverrideableCommand

findBuilderFor

public static org.metaabm.act.ABuild findBuilderFor(org.metaabm.SAgent agent)

findBuilderOf

public static org.metaabm.act.ABuild findBuilderOf(org.metaabm.SContext agent)

findCreatorFor

public static org.metaabm.act.ACreateAgents findCreatorFor(org.metaabm.SAgent agent)

findCreatorOf

public static org.metaabm.act.ACreateAgents findCreatorOf(org.metaabm.SContext context,
                                                          org.metaabm.SAgent agent)

doExecute

public void doExecute()
Specified by:
doExecute in interface org.eclipse.emf.edit.command.OverrideableCommand
Specified by:
doExecute in class org.eclipse.emf.edit.command.AbstractOverrideableCommand

doRedo

public void doRedo()
Specified by:
doRedo in interface org.eclipse.emf.edit.command.OverrideableCommand
Specified by:
doRedo in class org.eclipse.emf.edit.command.AbstractOverrideableCommand

doUndo

public void doUndo()
Specified by:
doUndo in interface org.eclipse.emf.edit.command.OverrideableCommand
Specified by:
doUndo in class org.eclipse.emf.edit.command.AbstractOverrideableCommand