|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.artenum.jyconsole.command.Command
public class Command
Project ref : JyConsole project
Copyright and license : See relevant sections
Status : under development
Creation : 23/06/2006
Modification :
Description : A command is either a single line of Jython or a file of commands. The
isRunning() method is a condition variable so you can synchronize on
completion of the command.
| Version number | Author (name, e-mail) | Corrections/Modifications |
| 0.1 | Colin Crist, colincrist@hermesjms.com | Contribution integrated by Sebastien Jourdain, jourdain@artenum.com |
| Constructor Summary | |
|---|---|
Command(JInteractiveInterpreter pythonInterpreter,
java.io.File commandFile)
Run a script from a file. |
|
Command(JInteractiveInterpreter pythonInterpreter,
java.lang.String command)
Run a single line of Jython. |
|
| Method Summary | |
|---|---|
boolean |
isRunning()
Is the command currently running? |
void |
run()
Actually performs the command. |
void |
stop()
If the command is running stop it. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Command(JInteractiveInterpreter pythonInterpreter,
java.io.File commandFile)
pythonInterpreter - commandFile -
public Command(JInteractiveInterpreter pythonInterpreter,
java.lang.String command)
pythonInterpreter - command - | Method Detail |
|---|
public boolean isRunning()
public void stop()
public void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
(c) Copyright: Artenum SARL, 101-103 Boulevard Mac Donald,
75019, Paris, France 2005.
http://www.artenum.com
License:
This program is free software; you can redistribute it
and/or modify it under the terms of the Q Public License;
either version 1 of the License.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the Q Public License for more details.
You should have received a copy of the Q Public License
License along with this program;
if not, write to:
Artenum SARL, 101-103 Boulevard Mac Donald,
75019, PARIS, FRANCE, e-mail: contact@artenum.com