public static void saveChannel(Writer w, Channel c) throws IOException {
w.write(c.getClass().getName() + "\n");
for (int i = 0; i < c.m_LocalParameters.size(); i++) {
AbstractParam param = c.m_LocalParameters.get(i);
w.write(param.getName().replace(' ', '_') + " ");
param.save(w);
}
w.write("endparameters\n");
}
public static Channel loadChannel(Scanner s) {