source: java/main/src/main/java/com/framsticks/util/dispatching/Future.java @ 107

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

HIGHLIGHTS:

  • add SimultorProviders? hierarchy
  • start Framsticks server over SSH
  • FJF compatible with Framsticks 4.0rc3
  • reading and writing of standard.expt
  • a proof-of-concept implementation of StandardExperiment?

CHANGELOG:
Optionally return FreeAccess? from registry.

Add SimulatorRange?.

StandardExperiment? with genotypes circulation.

Automate registration around StandardState?.

More improvements to StandardExperiment?.

Skeleton version of StandardExperiment?.

Test saving of StandardState?.

Standard experiment state is being loaded.

More development towards StandardState? reading.

Work on reading standard experiment state.

Add classes for standard experiment.

Update example standard.expt

Add FreeAccess? and FreeObject?.

Made compatible with version 4.0rc3

Change deserialization policy.

Improve SSH support.

Working running simulator over SSH.

Fix joining bug in Experiment.

Working version of SimulatorRunner?.

Add more SimulatorProviders?.

Working PrimeExperimentTest? with 4.0rc3

Add references to deserialization.

Add OpaqueObject? and it's serialization.

Add deserialization of dictionaries.

Partial implementation of deserialization.

Add more tests for deserialization.

Prepare tests for deserialization.

Add proper result to prime experiment test.

Minor fixes to simulators providers.

Draft version of SimulatorProvider?.

Add SimulatorProvider? interface.

File size: 726 bytes
Line 
1package com.framsticks.util.dispatching;
2
3import com.framsticks.util.ExceptionHandler;
4import com.framsticks.util.FramsticksException;
5
6public abstract class Future<T> extends FutureHandler<T> {
7
8        protected final ExceptionHandler handler;
9
10        public Future(ExceptionHandler handler) {
11                assert handler != null;
12                this.handler = handler;
13        }
14
15        @Override
16        public final void handle(FramsticksException exception) {
17                handler.handle(exception);
18        }
19
20        public static <T> Future<T> doNothing(Class<T> type, ExceptionHandler handler) {
21                return doNothing(handler);
22        }
23
24        public static <T> Future<T> doNothing(ExceptionHandler handler) {
25                return new Future<T>(handler) {
26
27                        @Override
28                        protected void result(T result) {
29
30                        }
31                };
32        }
33
34}
Note: See TracBrowser for help on using the repository browser.