Java Doc for RMIInteractionsModel.java in  » IDE » DrJava » edu » rice » cs » drjava » model » repl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » DrJava » edu.rice.cs.drjava.model.repl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.rice.cs.drjava.model.repl.InteractionsModel
      edu.rice.cs.drjava.model.repl.RMIInteractionsModel

All known Subclasses:   edu.rice.cs.drjava.model.repl.DefaultInteractionsModel,
RMIInteractionsModel
abstract public class RMIInteractionsModel extends InteractionsModel (Code)
An InteractionsModel which can serve as the glue between a local InteractionsDocument and a remote JavaInterpreter in another JVM.
version:
   $Id: RMIInteractionsModel.java 4255 2007-08-28 19:17:37Z mgricken $


Field Summary
final protected  MainJVM_jvm
     RMI interface to the remote Java interpreter.

Constructor Summary
public  RMIInteractionsModel(MainJVM jvm, ConsoleDocumentInterface adapter, File wd, int historySize, int writeDelay)
     Constructs an InteractionsModel which can communicate with another JVM.

Method Summary
protected  void_interpret(String toEval)
     Interprets the given command.
abstract protected  void_notifyInterpreterChanged(boolean inProgress)
     Notifies listeners that the interpreter has changed.
protected  void_resetInterpreter(File wd)
     Resets the Java interpreter.
public  voidaddBuildDirectoryClassPath(File f)
    
public  voidaddDebugInterpreter(String name, String className)
     Adds a named JavaDebugInterpreter to the list of interpreters.
public  voidaddExternalFilesClassPath(File f)
    
public  voidaddExtraClassPath(File f)
    
public  voidaddJavaInterpreter(String name)
     Adds a named DynamicJavaAdapter to the list of interpreters.
public  voidaddProjectClassPath(File f)
     Adds the given path to the interpreter's classpath.
public  voidaddProjectFilesClassPath(File f)
    
public  voidenableRestart()
     Enables restarting of slave JVM.
public  Iterable<File>getClassPath()
     Gets the interpreter classpath from the interpreter jvm.
public  StringgetVariableClassName(String var)
     Gets the class name of a variable in the current interpreter.
public  StringgetVariableToString(String var)
     Gets the string representation of the value of a variable in the current interpreter.
public  voidremoveInterpreter(String name)
     Removes the interpreter with the given name, if it exists.
public  voidsetActiveInterpreter(String name, String prompt)
     Sets the active interpreter.
public  voidsetPrivateAccessible(boolean allow)
     Sets whether or not the interpreter should allow access to private members.
public  voidsetToDefaultInterpreter()
     Sets the default interpreter to be the current one.

Field Detail
_jvm
final protected MainJVM _jvm(Code)
RMI interface to the remote Java interpreter.




Constructor Detail
RMIInteractionsModel
public RMIInteractionsModel(MainJVM jvm, ConsoleDocumentInterface adapter, File wd, int historySize, int writeDelay)(Code)
Constructs an InteractionsModel which can communicate with another JVM.
Parameters:
  jvm - RMI interface to the slave JVM
Parameters:
  adapter - InteractionsDJDocument to use in the InteractionsDocument
Parameters:
  historySize - Number of lines to store in the history
Parameters:
  writeDelay - Number of milliseconds to wait after each println




Method Detail
_interpret
protected void _interpret(String toEval)(Code)
Interprets the given command.
Parameters:
  toEval - command to be evaluated



_notifyInterpreterChanged
abstract protected void _notifyInterpreterChanged(boolean inProgress)(Code)
Notifies listeners that the interpreter has changed. (Subclasses must maintain listeners.)
Parameters:
  inProgress - Whether the new interpreter is currently in progress with an interaction, i.e., whether an interactionEnded event will be fired)



_resetInterpreter
protected void _resetInterpreter(File wd)(Code)
Resets the Java interpreter.



addBuildDirectoryClassPath
public void addBuildDirectoryClassPath(File f)(Code)



addDebugInterpreter
public void addDebugInterpreter(String name, String className)(Code)
Adds a named JavaDebugInterpreter to the list of interpreters.
Parameters:
  name - the unique name for the debug interpreter
Parameters:
  className - the fully qualified class name of the class the debug interpreter is in
throws:
  IllegalArgumentException - if the name is not unique



addExternalFilesClassPath
public void addExternalFilesClassPath(File f)(Code)



addExtraClassPath
public void addExtraClassPath(File f)(Code)



addJavaInterpreter
public void addJavaInterpreter(String name)(Code)
Adds a named DynamicJavaAdapter to the list of interpreters.
Parameters:
  name - the unique name for the interpreter
throws:
  IllegalArgumentException - if the name is not unique



addProjectClassPath
public void addProjectClassPath(File f)(Code)
Adds the given path to the interpreter's classpath.
Parameters:
  path - Path to add



addProjectFilesClassPath
public void addProjectFilesClassPath(File f)(Code)



enableRestart
public void enableRestart()(Code)
Enables restarting of slave JVM.



getClassPath
public Iterable<File> getClassPath()(Code)
Gets the interpreter classpath from the interpreter jvm. a vector of classpath elements



getVariableClassName
public String getVariableClassName(String var)(Code)
Gets the class name of a variable in the current interpreter.
Parameters:
  var - the name of the variable



getVariableToString
public String getVariableToString(String var)(Code)
Gets the string representation of the value of a variable in the current interpreter.
Parameters:
  var - the name of the variable



removeInterpreter
public void removeInterpreter(String name)(Code)
Removes the interpreter with the given name, if it exists.
Parameters:
  name - Name of the interpreter to remove



setActiveInterpreter
public void setActiveInterpreter(String name, String prompt)(Code)
Sets the active interpreter.
Parameters:
  name - the (unique) name of the interpreter.
Parameters:
  prompt - the prompt the interpreter should have.



setPrivateAccessible
public void setPrivateAccessible(boolean allow)(Code)
Sets whether or not the interpreter should allow access to private members.



setToDefaultInterpreter
public void setToDefaultInterpreter()(Code)
Sets the default interpreter to be the current one.



Fields inherited from edu.rice.cs.drjava.model.repl.InteractionsModel
final public static String BANNER_PREFIX(Code)(Java Doc)
final protected ConsoleDocumentInterface _adapter(Code)(Java Doc)
final protected InteractionsDocument _document(Code)(Java Doc)
protected volatile InputListener _inputListener(Code)(Java Doc)
protected volatile Pair<String, String> _lastError(Code)(Java Doc)
final public static String _newLine(Code)(Java Doc)
final protected InteractionsEventNotifier _notifier(Code)(Java Doc)
protected volatile Pair<String, String> _secondToLastError(Code)(Java Doc)
protected volatile boolean _waitingForFirstInterpreter(Code)(Java Doc)
protected volatile File _workingDirectory(Code)(Java Doc)
final public Object _writerLock(Code)(Java Doc)

Methods inherited from edu.rice.cs.drjava.model.repl.InteractionsModel
protected void _createNewDebugPort() throws IOException(Code)(Java Doc)
protected static String _deleteSemiColon(String s)(Code)(Java Doc)
protected ArrayList<String> _getHistoryText(FileOpenSelector selector) throws IOException, OperationCanceledException(Code)(Java Doc)
public void _interactionIsOver()(Code)(Java Doc)
abstract protected void _interpret(String toEval)(Code)(Java Doc)
abstract protected void _interpreterResetFailed(Throwable t)(Code)(Java Doc)
abstract protected void _notifyInteractionEnded()(Code)(Java Doc)
abstract protected void _notifyInteractionIncomplete()(Code)(Java Doc)
abstract protected void _notifyInteractionStarted()(Code)(Java Doc)
abstract protected void _notifyInterpreterExited(int status)(Code)(Java Doc)
abstract public void _notifyInterpreterReady(File wd)(Code)(Java Doc)
abstract protected void _notifyInterpreterResetFailed(Throwable t)(Code)(Java Doc)
abstract protected void _notifyInterpreterResetting()(Code)(Java Doc)
abstract protected void _notifySlaveJVMUsed()(Code)(Java Doc)
abstract protected void _notifySyntaxErrorOccurred(int offset, int length)(Code)(Java Doc)
protected ArrayList<String> _removeSeparators(String text)(Code)(Java Doc)
abstract protected void _resetInterpreter(File wd)(Code)(Java Doc)
protected static String _testClassCall(String s)(Code)(Java Doc)
public void _writerDelay()(Code)(Java Doc)
abstract public void addBuildDirectoryClassPath(File f)(Code)(Java Doc)
abstract public void addExternalFilesClassPath(File f)(Code)(Java Doc)
abstract public void addExtraClassPath(File f)(Code)(Java Doc)
public void addListener(InteractionsListener listener)(Code)(Java Doc)
public void addNewLine()(Code)(Java Doc)
abstract public void addProjectClassPath(File f)(Code)(Java Doc)
abstract public void addProjectFilesClassPath(File f)(Code)(Java Doc)
public void append(String s, String styleName)(Code)(Java Doc)
public void changeInputListener(InputListener oldListener, InputListener newListener)(Code)(Java Doc)
public String getBanner()(Code)(Java Doc)
public static String getBanner(File wd)(Code)(Java Doc)
abstract public ConsoleDocument getConsoleDocument()(Code)(Java Doc)
public String getConsoleInput()(Code)(Java Doc)
public int getDebugPort() throws IOException(Code)(Java Doc)
public InteractionsDocument getDocument()(Code)(Java Doc)
public Pair<String, String> getLastError()(Code)(Java Doc)
public Pair<String, String> getSecondToLastError()(Code)(Java Doc)
public String getStartUpBanner()(Code)(Java Doc)
abstract public String getVariableClassName(String var)(Code)(Java Doc)
abstract public String getVariableToString(String var)(Code)(Java Doc)
public File getWorkingDirectory()(Code)(Java Doc)
public void interactionContinues()(Code)(Java Doc)
final public void interpret(String toEval)(Code)(Java Doc)
public void interpretCurrentInteraction()(Code)(Java Doc)
public void interpreterReady(File wd)(Code)(Java Doc)
public void interpreterResetFailed(Throwable t)(Code)(Java Doc)
public void interpreterResetting()(Code)(Java Doc)
public void loadHistory(FileOpenSelector selector) throws IOException(Code)(Java Doc)
public InteractionsScriptModel loadHistoryAsScript(FileOpenSelector selector) throws IOException, OperationCanceledException(Code)(Java Doc)
public void removeAllInteractionListeners()(Code)(Java Doc)
public String removeLastFromHistory()(Code)(Java Doc)
public void removeListener(InteractionsListener listener)(Code)(Java Doc)
public void replCalledSystemExit(int status)(Code)(Java Doc)
public void replReturnedResult(String result, String style)(Code)(Java Doc)
public void replReturnedSyntaxError(String errorMessage, String interaction, int startRow, int startCol, int endRow, int endCol)(Code)(Java Doc)
public void replReturnedVoid()(Code)(Java Doc)
public void replSystemErrPrint(String s)(Code)(Java Doc)
public void replSystemOutPrint(String s)(Code)(Java Doc)
public void replThrewException(String exceptionClass, String message, String stackTrace, String shortMessage)(Code)(Java Doc)
final public void resetInterpreter(File wd)(Code)(Java Doc)
public void resetLastErrors()(Code)(Java Doc)
public void setDebugPort(int port)(Code)(Java Doc)
public void setInputListener(InputListener listener)(Code)(Java Doc)
public void setWaitingForFirstInterpreter(boolean waiting)(Code)(Java Doc)
public void slaveJVMUsed()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.