operations
Class OpArchiveUser

java.lang.Object
  |
  +--operations.Operation
        |
        +--operations.OpUser
              |
              +--operations.OpArchiveUser

public class OpArchiveUser
extends OpUser


Field Summary
 
Fields inherited from class operations.OpUser
croupier, leaid, librarian
 
Fields inherited from class operations.Operation
constructedObjects, level, objects, reconstructedObjects, thisLab, undoable, use
 
Constructor Summary
OpArchiveUser(interagents.userLab lab, java.util.Random croupier, librarian.EuLibrarian librarian, fundamentals.leaIdentifier leaid)
           
 
Method Summary
 boolean can(fundamentals.signature sgn)
          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.
 boolean enable(int clearing, fundamentals.signature sgn)
           
 void perform(fundamentals.signature sgn)
          The following method performs the operation on the objects given in objs.
 java.lang.String submenu(int language)
           
 java.lang.String toNaturalLanguage(int language)
          The following method returns the name of the operation.
 
Methods inherited from class operations.Operation
construct, deselect, hide, isUndoable, name, record, record, show, start, stop, unconstruct, undoAll, undoFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpArchiveUser

public OpArchiveUser(interagents.userLab lab,
                     java.util.Random croupier,
                     librarian.EuLibrarian librarian,
                     fundamentals.leaIdentifier leaid)
Method Detail

can

public boolean can(fundamentals.signature sgn)
The following method returns true, if it makes sense to perform this operation on the set of objects given in objs. The signature is redundant, but it's faster to compute it only once.

Overrides:
can in class OpUser

enable

public boolean enable(int clearing,
                      fundamentals.signature sgn)
Overrides:
enable in class Operation

toNaturalLanguage

public java.lang.String toNaturalLanguage(int language)
The following method returns the name of the operation. This is used for the menu.

Overrides:
toNaturalLanguage in class OpUser

submenu

public java.lang.String submenu(int language)
Overrides:
submenu in class Operation

perform

public void perform(fundamentals.signature sgn)
             throws LeaException
Description copied from class: OpUser
The following method performs the operation on the objects given in objs. It's assumed that it makes sense to perform the operation (this can be checked with the can() method. Some subclasses assume that can() method is always called before the perform() method, and that it's called with the same objs Vector.

Overrides:
perform in class OpUser
LeaException

canDefault

public boolean canDefault()
Description copied from class: Operation
Returns true if this method can should be used as a default operation. The default is "true", so we only need to override the method for operations that cannot be used as default operations.

Overrides:
canDefault in class Operation