operations
Class OpUser
java.lang.Object
|
+--operations.Operation
|
+--operations.OpUser
- Direct Known Subclasses:
- OpArchiveUser
- public class OpUser
- extends Operation
Field Summary |
protected java.util.Random |
croupier
|
protected fundamentals.leaIdentifier |
leaid
|
protected librarian.EuLibrarian |
librarian
|
Constructor Summary |
OpUser(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. |
void |
perform(fundamentals.signature sgn)
The following method performs the operation on the objects
given in objs. |
java.lang.String |
toNaturalLanguage(int language)
The following method returns the name of the operation. |
Methods inherited from class operations.Operation |
canDefault, construct, deselect, enable, hide, isUndoable, name, record, record, show, start, stop, submenu, unconstruct, undoAll, undoFirst |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
leaid
protected fundamentals.leaIdentifier leaid
croupier
protected java.util.Random croupier
librarian
protected librarian.EuLibrarian librarian
OpUser
public OpUser(interagents.userLab lab,
java.util.Random croupier,
librarian.EuLibrarian librarian,
fundamentals.leaIdentifier leaid)
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.
- Specified by:
can
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 Operation
perform
public void perform(fundamentals.signature sgn)
throws LeaException
- 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.
- Specified by:
perform
in class Operation
LeaException