source: java/main/src/main/java/com/framsticks/communication/ManagedConnection.java @ 103

Last change on this file since 103 was 103, checked in by psniegowski, 11 years ago

HIGHLIGHTS:

  • add auto loading and saving algorithms between

frams files format and Java classes

  • respect ValueChange? events in GUI (do not reload object)
  • support results of procedures in Java server
  • make Experiment automatically convert between frams file and NetFile? object
  • add MessageLogger? (compatible with original frams server messages)
  • WorkPackageLogic? now validates results, is able to discard them, reschedule

whole package, or only uncomputed remainder

CHANGELOG:
Show just a short description in PrimeExperiment?.

Add primes_changed event to the PrimeExperiment?.

Make WorkPackageLogic? robust to frams server returning invalid results.

Add MessageLogger? to logics.

Add NetFile? interface. Support Messages from server.

Minor changes to connections.

Merge results in the PrimeExperiment?.

More netload class->file conversion to Simulator.

Move netsave parsing to Simulator.

Fix bug with inverted ordering of events firing in Experiment.

Minor changes.

Minor logging changes.

Use AccessOperations?.convert in NetLoadSaveLogic?

NetLoadSaveLogic? now encloses the conversion.

Use more generic AccessOperations? saveAll and loadAll in PrimePackage?.

Add Result class for enclosing of call invocations' results.

Improve feature request handling in Connections.

Use AccessOperations?.convert in RemoteTree? events parsing.

Minor change.

Add some information params to Java server root and CLI objects.

A draft implementation of loadAll algorithm.

That algorithm tries to load objects into a tree structure.

Add AccessOperationsTest? test.

Develop WorkPackageLogic?.

  • add state tracking fields
  • add work package generation

Add utility class SimplePrimitive?.

Meant for Java backend classes, enclose a single primitive value
and set of listeners.

Improve primitive value refresh in GUI.

When ValueChange? found in called event, do not reload whole
object, but only update GUI (no communication is performed).

Use ValueChange? in the TestClass? test.

Minor changes.

Sending all packages in PrimeExperiment? to the frams servers.

Develop AccessOperations?.loadComposites().

Remove addAccess from MultiParamLoader? interface.

There is now no default AccessProvider? in MultiParamLoader?.
User must explicitely set AccessStash? or Registry.

Improve saving algorithms in AccessOperations?.

File size: 792 bytes
Line 
1package com.framsticks.communication;
2
3import java.util.HashSet;
4import java.util.Set;
5
6import com.framsticks.util.lang.Pair;
7
8public abstract class ManagedConnection extends Connection {
9
10        public boolean requestIdEnabled = false;
11
12        protected int protocolVersion = -1;
13
14        protected Set<String> requestedFeatures = new HashSet<String>();
15
16        public ManagedConnection() {
17        }
18
19        protected final Pair<Integer, CharSequence> takeRequestId(CharSequence line) {
20                return Request.takeRequestId(requestIdEnabled, line);
21        }
22
23        /**
24         * Returns Query associated with query getId.
25         *
26         * @return Query associated with query getId.
27         */
28        public int getProtocolVersion() {
29                return protocolVersion;
30        }
31
32        @Override
33        protected void joinableInterrupt() {
34                protocolVersion = -1;
35                super.joinableInterrupt();
36        }
37
38}
Note: See TracBrowser for help on using the repository browser.