[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Space.java, 1.253, 1.254 Command.jav
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-05-21 07:29:05
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18762/src/net/sourceforge/bprocessor/model Modified Files: Space.java Command.java Log Message: Added scripts to spaces Index: Space.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Space.java,v retrieving revision 1.253 retrieving revision 1.254 diff -C2 -d -r1.253 -r1.254 *** Space.java 20 May 2010 10:58:45 -0000 1.253 --- Space.java 21 May 2010 07:28:57 -0000 1.254 *************** *** 56,59 **** --- 56,64 ---- protected long nextConstructorId; + + /** The scripts */ + protected List<Command> scripts; + + /** * *************** *** 139,142 **** --- 144,149 ---- constructors = new HashMap<Long, Constructor>(); nextConstructorId = 1; + + scripts = new LinkedList(); } *************** *** 544,547 **** --- 551,571 ---- } + + /** + * Add a script command + * @param command the command to add as a script + */ + public void add(Command command) { + scripts.add(command); + } + + /** + * + * @return scripts of this space + */ + public List<Command> getScripts() { + return new LinkedList(scripts); + } + /** * Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** Command.java 20 May 2010 10:58:45 -0000 1.84 --- Command.java 21 May 2010 07:28:57 -0000 1.85 *************** *** 47,50 **** --- 47,55 ---- return "Modellor"; } + + /** {@inheritDoc} */ + public String getName() { + return title(); + } /** {@inheritDoc} */ |