Ignore:
Timestamp:
07/14/13 23:20:04 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • improve tree side notes
  • improve GUI layout
  • add foldable list of occured events to EventControl?
  • improve automatic type conversion in proxy listeners
  • implement several Access functionalities as algorithms independent of Access type
  • introduce draft base classes for distributed experiments
  • automatically register dependant Java classes to FramsClass? registry
  • add testing prime experiment and configuration
  • simplify and improve task dispatching

CHANGELOG:
Improve task dispatching in RemoteTree?.

GUI no longer hangs on connection problems.

Make all dispatchers joinables.

Refactorize Thread dispatcher.

Remove Task and PeriodicTask?.

Use Java utilities in those situations.

Reworking tasks dispatching.

Fix bug in EventControl? listener dispatching.

Minor improvements.

Add testing configuration for ExternalProcess? in GUI.

More improvement to prime.

Support for USERREADONLY in GUI.

Add that flag to various params in Java classes.

Remove redundant register clauses from several FramsClassAnnotations?.

Automatically gather and register dependant classes.

Add configuration for prime.

Improve Simulator class.

Add prime.xml configuration.

Introduce draft Experiment and Simulator classes.

Add prime experiment tests.

Enclose typical map with listeners into SimpleUniqueList?.

Needfile works in GUI.

Improve needfile handling in Browser.

More improvement with NeedFile?.

Implementing needfile.

Update test.

Rename ChangeEvent? to TestChangeEvent?.

Automatic argument type search in RemoteTree? listeners.

MultiParamLoader? uses AccessProvider?. By default old implementation
enclosed in AccessStash? or Registry.

Minor changes.

Rename SourceInterface? to Source.

Also improve toString of File and ListSource?.

Remove unused SimpleSource? class.

Add clearing in HistoryControl?.

Show entries in table at EventControl?.

Improve EventControl?.

Add listeners registration to EventControl?.

Add foldable table to HistoryControl?.

Add control row to Procedure and Event controls.

Improve layout of controls.

Another minor change to gui layout.

Minor improvement in the SliderControl?.

Minor changes.

Move ReflectionAccess?.Backend to separate file.

It was to cluttered.

Cleanup in ReflectionAccess?.

Move setMin, setMax, setDef to AccessOperations?.

Extract loading operation into AccessOperations?.

Append Framsticks to name of UnsupportedOperationException?.

The java.lang.UnsupportedOperationException? was shadowing this class.

Rename params.Util to params.ParamsUtil?.

Several improvements.

Minor changes.

Implement revert functionality.

Improve local changes management.

Minor improvement.

Remove methods rendered superfluous after SideNoteKey? improvement.

Improve SideNoteKey?.

It is now generic type, so explicit type specification at
call site is no more needed.

Introduce SideNoteKey? interface.

Only Objects implementing that key may be used as side note keys.

Minor improvements.

Use strings instead of ValueControls? in several gui mappings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/communication/Connection.java

    r100 r101  
    11package com.framsticks.communication;
    22
     3import com.framsticks.params.Source;
    34import com.framsticks.params.annotations.AutoAppendAnnotation;
    45import com.framsticks.params.annotations.FramsClassAnnotation;
     
    6061                threads.add(senderThread);
    6162                threads.add(receiverThread);
    62 
    6363        }
    6464
     
    242242                        protected void runAt() {
    243243                                receiverThreadRoutine();
    244                                 interrupt();
    245                                 finish();
     244                                interruptJoinable();
     245                                finishJoinable();
    246246                        }
    247247                });
     
    251251        protected void joinableInterrupt() {
    252252                Dispatching.drop(threads, this);
    253                 finish();
     253                finishJoinable();
    254254        }
    255255
     
    331331
    332332
     333        protected static String idToString(Integer id) {
     334                return id != null ? " " + id.toString() : "";
     335        }
     336
     337        protected final void putFile(File file, Integer outId) {
     338                putLine("file" + idToString(outId)/* + " " + f.getPath()*/);
     339                Source content = file.getContent();
     340                String line;
     341                while ((line = content.readLine()) != null) {
     342                        putLine(line);
     343                }
     344                putLine("eof");
     345        }
     346
     347        public final void sendFile(final String header, final File file, final Integer id, ExceptionResultHandler handler) {
     348                senderThread.dispatch(new RunAt<Connection>(handler) {
     349                        @Override
     350                        protected void runAt() {
     351                                if (header != null) {
     352                                        putLine(header);
     353                                }
     354                                putFile(file, id);
     355                                flushOut();
     356                        }
     357                });
     358        }
     359
    333360}
Note: See TracChangeset for help on using the changeset viewer.