[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Command.java, 1.68, 1.69
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2008-02-15 13:48:04
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9698/src/net/sourceforge/bprocessor/model Modified Files: Command.java Log Message: frame Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** Command.java 13 Feb 2008 13:18:20 -0000 1.68 --- Command.java 15 Feb 2008 13:48:01 -0000 1.69 *************** *** 1952,1955 **** --- 1952,1983 ---- * */ + public static class InitializeNet extends Command { + + /** + * Initialize Net + * @param net Container + */ + public InitializeNet(Container net) { + parameters.put("net", net); + parameters.put("frame-width", 0.045); + parameters.put("depth", 0.145); + } + + /** {@inheritDoc} */ + @Override + public void evaluate() { + Container net = (Container) parameters.get("net"); + double width = parameters.getDouble("frame-width"); + double depth = parameters.getDouble("depth"); + ParameterBlock block = new ParameterBlock(); + block.put("frame-width", width); + block.put("depth", depth); + net.setParameters(block); + } + } + + /** + * + */ public static class InsertGrid extends Command { /** *************** *** 1967,1971 **** */ public String title() { ! return "Insert Net"; } --- 1995,1999 ---- */ public String title() { ! return "Insert Grid"; } |