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/parsers/MultiParamLoader.java

    r100 r101  
    6868         * File from which data should be read.
    6969         */
    70         private SourceInterface currentSource;
     70        private Source currentSource;
    7171
    7272        protected String currentLine;
     
    8383         * actual reader.
    8484         */
    85         private Map<String, SourceInterface> fileMap = new HashMap<String, SourceInterface>();
     85        private Map<String, Source> fileMap = new HashMap<String, Source>();
    8686
    8787        /**
    8888         * List of known classes.
    8989         */
    90         private Map<String, Access> knownParamInterfaces = new HashMap<String, Access>();
     90        protected AccessProvider accessProvider = new AccessStash();
    9191
    9292        /**
     
    100100        public String getCurrentLine() {
    101101                return currentLine;
     102        }
     103
     104        /**
     105         * @return the accessProvider
     106         */
     107        public AccessProvider getAccessProvider() {
     108                return accessProvider;
     109        }
     110
     111        /**
     112         * @param accessProvider the accessProvider to set
     113         */
     114        public void setAccessProvider(AccessProvider accessProvider) {
     115                this.accessProvider = accessProvider;
    102116        }
    103117
     
    184198                        }
    185199                        log.trace("loading into {}", lastAccess);
    186                         lastAccess.load(currentSource);
     200                        AccessOperations.load(lastAccess, currentSource);
    187201
    188202                        if (changeStatus(Status.AfterObject)) {
     
    194208
    195209                        // found unknown object
    196                         emptyParam.load(currentSource);
     210                        AccessOperations.load(emptyParam, currentSource);
    197211                        if (changeStatus(Status.AfterObject)) {
    198212                                return LoopAction.Break;
     
    262276                if (line.charAt(line.length() - 1) == ':') {
    263277                        String typeName = line.substring(0, line.length() - 1);
    264                         lastAccess = knownParamInterfaces.get(typeName);
     278                        lastAccess = accessProvider.getAccess(typeName);
    265279
    266280                        if (lastAccess != null) {
     
    300314         */
    301315        public void addAccess(Access access) {
    302                 /**TODO: by id or by name? rather by id, because from file is always lowercase*/
    303                 knownParamInterfaces.put(access.getId(), access);
     316                accessProvider.addAccess(access);
    304317        }
    305318
     
    324337         */
    325338
    326         public boolean setNewSource(SourceInterface source) {
     339        public boolean setNewSource(Source source) {
    327340                log.debug("switching current source to {}...", source.getFilename());
    328341
     
    351364                log.info("including file {}...", includeFilename);
    352365
    353                 SourceInterface newSource = currentSource.openInclude(includeFilename);
     366                Source newSource = currentSource.openInclude(includeFilename);
    354367                if (newSource == null) {
    355368                        return;
     
    426439        }
    427440
    428         public static List<Object> loadAll(SourceInterface source, Access access) {
     441        public static List<Object> loadAll(Source source, Access access) {
    429442                final List<Object> result = new LinkedList<>();
    430443
Note: See TracChangeset for help on using the changeset viewer.