|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--operations.Operation
Field Summary | |
protected java.util.Vector |
constructedObjects
|
int |
level
|
protected java.util.Vector |
objects
|
protected java.util.Vector |
reconstructedObjects
|
interagents.userLab |
thisLab
|
protected boolean |
undoable
|
protected interagents.UndoStackElement |
use
|
Constructor Summary | |
Operation(interagents.userLab lab,
int level)
|
Method Summary | |
abstract boolean |
can(fundamentals.signature s)
The following method returns true, if it makes sense to perform this operation on the set of objects given in objs. |
boolean |
canDefault()
Returns true if this method can should be used as a default operation. |
protected interagents.ObjectWithStatus |
construct(objects.EuObject o)
Use this method to add EuObjects to the lab or, if the object was constructed previously, to make sure the object is shown. |
boolean |
deselect()
|
boolean |
enable(int clearing,
fundamentals.signature sgn)
|
protected void |
hide(interagents.ObjectWithStatus ows)
Hides an object and records it for the undo stack. |
boolean |
isUndoable()
|
java.lang.String |
name()
The following method returns the name of the operation. |
abstract void |
perform(fundamentals.signature s)
The following method performs the operation on the objects given in objs. |
protected void |
record(interagents.EuLab trace)
|
protected void |
record(moves.EuMove move)
|
protected void |
show(interagents.ObjectWithStatus ows)
Shows an object and records it for the undo stack. |
protected void |
start()
Call this method before any call of the construct-method, hide() or show(), if you want the Operation to be undoable. |
protected void |
stop()
Call this method after the last call of any construct-method, hideShadows() or show(), if you want the operation to be undoable. |
java.lang.String |
submenu(int language)
|
java.lang.String |
toNaturalLanguage(int language)
|
protected void |
unconstruct(interagents.ObjectWithStatus ows)
|
protected void |
undoAll()
|
protected void |
undoFirst()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector objects
protected java.util.Vector constructedObjects
protected java.util.Vector reconstructedObjects
public interagents.userLab thisLab
public int level
protected interagents.UndoStackElement use
protected boolean undoable
Constructor Detail |
public Operation(interagents.userLab lab, int level)
Method Detail |
public abstract boolean can(fundamentals.signature s)
public java.lang.String name()
public java.lang.String toNaturalLanguage(int language)
public abstract void perform(fundamentals.signature s) throws LeaException
LeaException
public boolean canDefault()
protected void start()
protected void show(interagents.ObjectWithStatus ows)
protected void hide(interagents.ObjectWithStatus ows)
protected interagents.ObjectWithStatus construct(objects.EuObject o)
protected void unconstruct(interagents.ObjectWithStatus ows)
protected void stop()
protected void record(moves.EuMove move)
protected void record(interagents.EuLab trace)
protected void undoFirst()
protected void undoAll()
public boolean isUndoable()
public boolean deselect()
public java.lang.String submenu(int language)
public boolean enable(int clearing, fundamentals.signature sgn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |