/** * 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); }
/** * 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); }
/** * 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); }