ctn-waterloo/nengo — pull request #324 by shuw (2012-11-18 03:36:26+00:00)
Title: UI - support removing Network termination

re: https://github.com/ctn-waterloo/nengo/issues/303

When "remove termination" is invoked from the termination, Network.hideTermination() is called.

However, it doesn't work completely yet. If I try to re-add a termination by the same name, I get this exception. @tcstewar, can you advise?

INFO [Configuring nef.templates.networkarray:ca.nengo.util.Memory]: Used: 95404112 Total: 181272576 Max: 954466304 (after inverse)
at ca.nengo.model.nef.impl.DecodableEnsembleImpl.addDecodedTermination(DecodableEnsembleImpl.java:262)
at ca.nengo.model.nef.impl.NEFEnsembleImpl.addDecodedTermination(NEFEnsembleImpl.java:588)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)

ca.nengo.model.StructuralException: ca.nengo.model.StructuralException: The ensemble already contains a termination named hi