source: java/main/src/main/java/com/framsticks/communication/queries/NeedFile.java @ 105

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

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 size: 1.0 KB
Line 
1package com.framsticks.communication.queries;
2
3import com.framsticks.communication.File;
4import com.framsticks.util.dispatching.FutureHandler;
5import com.framsticks.util.lang.Strings;
6
7public class NeedFile {
8
9        protected final String suggestedName;
10        protected final String description;
11        protected final FutureHandler<File> future;
12
13        /**
14         * @param suggestedName
15         * @param description
16         * @param future
17         */
18        public NeedFile(String suggestedName, String description, FutureHandler<File> future) {
19                this.suggestedName = suggestedName;
20                this.description = description;
21                this.future = future;
22        }
23
24        /**
25         * @return the suggestedName
26         */
27        public String getSuggestedName() {
28                return suggestedName;
29        }
30
31        /**
32         * @return the description
33         */
34        public String getDescription() {
35                return description;
36        }
37
38        /**
39         * @return the future
40         */
41        public FutureHandler<File> getFuture() {
42                return future;
43        }
44
45        @Override
46        public String toString() {
47                return Strings.toStringEmptyProof(suggestedName, "?") + " " + Strings.toStringEmptyProof(description, "?");
48        }
49
50}
Note: See TracBrowser for help on using the repository browser.