| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.uniroma3.plasm.core.Plasm
Class encapsulating the Plasm Process.
| Field Summary | |
static byte[] | 
EXIT
EXIT command for Plasm  | 
static java.lang.String | 
NAME
 | 
static byte[] | 
POSTFIX
Postfix in the evaluation statement.  | 
static byte[] | 
PREFIX
Prefix in the evaluation statement (schema stuff...)  | 
| Method Summary | |
 void | 
close()
Ugly doodly doo, what this method is gonna do?  | 
 void | 
eval(java.lang.String code)
AHCM (Another Hard comprehension method) this method evaluates the string passed as argument to the running plasm process NOTE: this method DOESN'T provide anysort of syntax evaluation...this is done from the underlying Plasm process.  | 
static Plasm | 
getInstance()
method to retrieve the actual instance in the JVM See the Singleton Pattern  | 
 java.lang.String | 
getPlasmPath()
 | 
 java.io.InputStream | 
getPlasmStandardOutput()
 | 
 boolean | 
isActive()
Is this process active?  | 
 void | 
open()
It opens, actually runs the plasm process and it connects the various streams to the crawling process.  | 
 void | 
setPlasmPath(java.lang.String plasmPath)
Sets the plasm path NEEDED to run Plasm (as it takes it takes it as a parameter...)  | 
 void | 
setStreamListener(org.eclipse.debug.core.IStreamListener listener)
Set a stream listener for this Plasm Process.  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final byte[] PREFIX
public static final byte[] POSTFIX
public static final byte[] EXIT
public static final java.lang.String NAME
| Method Detail | 
public static Plasm getInstance()
public void open()
          throws java.io.IOException
java.io.IOException - when it's impossible to communicate with the process.
public void close()
           throws java.io.IOException
java.lang.IOException - when somethings goes wrong closing all the streams (because
             this is what this method does, if it's not straightforward to
             your eyes...
java.io.IOException
public void eval(java.lang.String code)
          throws java.io.IOException
code - the string containing the Plasm statements
java.io.IOException - when something odd (like broken communications) occurs.public boolean isActive()
public java.lang.String getPlasmPath()
public void setPlasmPath(java.lang.String plasmPath)
plasmPath - The plasmPath to set.public java.io.InputStream getPlasmStandardOutput()
public void setStreamListener(org.eclipse.debug.core.IStreamListener listener)
                       throws java.io.IOException
listener - 
java.io.IOException - Thrown if plasm is not active
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||