Ignore:
Timestamp:
09/10/13 21:11:41 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • import refactorization: move Tree, Path, etc.

from core to structure package

  • initial serialization implementation
  • improve PrimeExperiment? test
  • many organizational changes and convenience improvements

CHANGELOG:
Make registry in AbstractTree? final.

Move most classes from core to structure package.

Minor changes.

Switch names of Future and FutureHandler?.

Rename ExceptionResultHandler? to ExceptionHandler?.

Rename ExceptionHandler? to ExceptionDispatcherHandler?.

Fix bug in ParamCandidate? cache.

Add missing synchronization to the BufferedDispatcher?.

Develop @Serialized support.

Rework serialization further.

Add serialization/deserialization interface to ValueParam?.

Move getStorageType and isNumeric from Param down to params hierarchy.

Minor changes.

Improve param type induction.

Add TestSerializedClass? for testing new serialization.

Add info files gor GenePool? and Population.

Add standard.expt exemplary netfile.

Add type name field to PropertiesObject?.

Use PropertiesObject? for PropertiesAccess? instead of ordinary map.

Hide getFramsClass is several more places.

More unification accross FramsClass?, Access and Path.

Add ParamCollection?.

Simplify interface for getting params from FramsClass?, Access
or Path.

Make Access.call() interface variadic.

Add arguments(args) convenience wrapper around new Object[] {args}.

Upgrade to apache.commons.lang version 3.1

Minor improvement with Response constructors.

Develop proper result printing in ClientAtServer?.

Add experimentNetsave to PrimeExperiment?.

File:
1 edited

Legend:

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

    r102 r105  
    44import com.framsticks.communication.queries.NeedFile;
    55import com.framsticks.communication.queries.NeedFileAcceptor;
    6 import com.framsticks.core.*;
    76import com.framsticks.gui.console.Console;
    87import com.framsticks.gui.console.DirectConsole;
     
    1615import com.framsticks.parsers.FileSource;
    1716import com.framsticks.remote.RemoteTree;
     17import com.framsticks.structure.Path;
     18import com.framsticks.structure.Tree;
     19import com.framsticks.util.ExceptionHandler;
    1820import com.framsticks.util.FramsticksException;
    1921import com.framsticks.util.dispatching.AbstractJoinable;
    2022import com.framsticks.util.dispatching.Dispatcher;
    2123import com.framsticks.util.dispatching.Dispatching;
    22 import com.framsticks.util.dispatching.ExceptionResultHandler;
    23 import com.framsticks.util.dispatching.Future;
     24import com.framsticks.util.dispatching.FutureHandler;
    2425import com.framsticks.util.dispatching.Joinable;
    2526import com.framsticks.util.dispatching.JoinableCollection;
     
    5455 */
    5556@FramsClassAnnotation
    56 public class Browser extends AbstractJoinable implements Dispatcher<Browser>, JoinableParent, ExceptionResultHandler {
     57public class Browser extends AbstractJoinable implements Dispatcher<Browser>, JoinableParent, ExceptionHandler {
    5758
    5859        private static final Logger log = LogManager.getLogger(Browser.class);
     
    213214                                                                file = new File("", new FileSource(filename));
    214215                                                        } catch (IOException e) {
    215                                                                 needFile.getFuture().handle(new FramsticksException().msg("failed to open choosed file").arg("filename", filename).cause(e));
     216                                                                needFile.getFuture().handle(new FramsticksException().msg("failed to open chosen file").arg("filename", filename).cause(e));
    216217                                                        }
    217218                                                        if (file != null) {
     
    239240        }
    240241
    241         public void autoResolvePath(final String path, final Future<Path> future) {
     242        public void autoResolvePath(final String path, final FutureHandler<Path> future) {
    242243                // final Tree i = trees.get("localhost");
    243244                // i.dispatch(new RunAt<Tree>(future) {
     
    277278                        protected void runAt() {
    278279
    279                                 for (final Tree i : trees) {
    280                                         i.dispatch(new RunAt<Tree>(this) {
     280                                for (final Tree tree : trees) {
     281                                        tree.dispatch(new RunAt<Tree>(this) {
    281282                                                @Override
    282283                                                protected void runAt() {
    283                                                         final Path p = Path.to(i, "/");
     284                                                        final Path p = Path.to(tree, "/");
    284285                                                        log.debug("adding path: {}", p);
    285286                                                        dispatch(new RunAt<Browser>(this) {
Note: See TracChangeset for help on using the changeset viewer.