Ignore:
Timestamp:
06/30/13 12:48:20 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • loading f0 schema with XmlLoader?
  • use XmlLoader? to load configuration
  • introduce unified fork-join model of various entities

(Instances, Connections, GUI Frames, etc.),
all those entities clean up gracefully on
shutdown, which may be initialized by user
or by some entity

  • basing on above, simplify several organizing classes

(Observer, main class)

(to host native frams server process from Java level)

CHANGELOG:
Remove redundant Observer class.

Clean up in AbstractJoinable?.

Update ExternalProcess? class to changes in joining model.

Another sweep through code with FindBugs?.

Find bug with not joining RemoteInstance?.

Joining almost works.

Much improved joining model.

More improvement to joining model.

Add logging messages around joinable operations.

Rename methods in AbstractJoinable?.

Improve Joinable.

Rewrite of entity structure.

More simplifications with entities.

Further improve joinables.

Let Frame compose from JFrame instead of inheriting.

Add join classes.

Improvements of closing.

Add Builder interface.

Add FramsServerTest?.xml

FramsServer? may be configured through xml.

Make Framsticks main class an Observer of Entities.

Make Observer a generic type.

Remove variables regarding to removed endpoint.

Simplify observer (remove endpoints).

More changes to Observer and Endpoint.

Minor improvements.

Add OutputListener? to ExternalProcess?.

Improve testing of ExternalProcess?.

Add ExternalProcess? runner.

Rename the Program class to Framsticks.

Migrate Program to use XmlLoader? configuration.

First steps with configuration using XmlLoader?.

Fix several bugs.

Move all f0 classes to apriopriate package.

XmlLoader? is able to load Schema.

XmlLoader? is loading classes and props.

Add GroupBuilder?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/TreeNode.java

    r85 r88  
    4141
    4242        final protected Frame frame;
    43         final protected EndpointAtFrame endpoint;
     43        final protected InstanceAtFrame instanceAtFrame;
    4444
    4545        final protected Map<EventParam, Subscription<?>> userSubscriptions = new HashMap<>();
     
    5151        protected Path path;
    5252
    53         public TreeNode(EndpointAtFrame endpoint, final Path path) {
    54                 this.frame = endpoint.getFrame();
     53        public TreeNode(InstanceAtFrame instanceAtFrame, final Path path) {
     54                this.frame = instanceAtFrame.getFrame();
    5555                assert frame.isActive();
    5656                this.paramId = path.getLastElement();
     
    5858                log.debug("creating treenode " + name + ": " + path);
    5959                this.path = path;
    60                 this.endpoint = endpoint;
     60                this.instanceAtFrame = instanceAtFrame;
    6161
    6262                iconName = TreeCellRenderer.findIconName(name, path.getTextual());
     
    171171                                                }
    172172                                                log.debug("update: treenode for " + p);
    173                                                 TreeNode childNode = new TreeNode(endpoint, childPath);
     173                                                TreeNode childNode = new TreeNode(instanceAtFrame, childPath);
    174174
    175175                                                frame.addNode(childNode, TreeNode.this);
     
    336336
    337337                CompositeParam param = path.getTop().getParam();
    338                 panel = endpoint.findPanel(param.computeAccessId());
     338                panel = instanceAtFrame.findPanel(param.computeAccessId());
    339339                if (panel != null) {
    340340                        log.debug("found prepared panel for: " + path);
     
    353353                                        @Override
    354354                                        public void run() {
    355                                                 panel = endpoint.preparePanel(param, framsClass);
     355                                                panel = instanceAtFrame.preparePanel(param, framsClass);
    356356                                                fillPanelWithValues();
    357357                                        }
     
    503503                final Map<ValueControl, Object> changes = localChanges;
    504504                localChanges = null;
    505                 endpoint.getEndpoint().invokeLater(new RunAt<Instance>() {
     505                instanceAtFrame.getInstance().invokeLater(new RunAt<Instance>() {
    506506                        @Override
    507507                        public void run() {
     
    509509                                        final ValueControl key = e.getKey();
    510510                                        final Path p = path;
    511                                         endpoint.getEndpoint().getInstance().storeValue(p, e.getKey().getParam(), e.getValue(), new StateFunctor() {
     511                                        instanceAtFrame.getInstance().storeValue(p, e.getKey().getParam(), e.getValue(), new StateFunctor() {
    512512                                                @Override
    513513                                                public void call(Exception e) {
Note: See TracChangeset for help on using the changeset viewer.