Example #1
0
File: Flow.java Project: tmx11/weka
 /**
  * Save this Flow to the supplied File
  *
  * @param file the File to save to
  * @throws WekaException if a problem occurs
  */
 public void saveFlow(File file) throws WekaException {
   JSONFlowUtils.writeFlow(this, file);
 }
Example #2
0
File: Flow.java Project: tmx11/weka
 /**
  * Return the JSON encoded version of this Flow
  *
  * @return the flow in JSON format
  * @throws WekaException if a problem occurs
  */
 public String toJSON() throws WekaException {
   return JSONFlowUtils.flowToJSON(this);
 }
Example #3
0
File: Flow.java Project: tmx11/weka
 /**
  * Parse a Flow from the supplied JSON string
  *
  * @param flowJSON the JSON string to parse
  * @param dontComplainAboutMissingConnections true to not raise an exception if there are
  *     connections to non-existent Steps in the JSON flow
  * @return the Flow
  * @throws WekaException if a problem occurs
  */
 public static Flow JSONToFlow(String flowJSON, boolean dontComplainAboutMissingConnections)
     throws WekaException {
   return JSONFlowUtils.JSONToFlow(flowJSON, dontComplainAboutMissingConnections);
 }