source: java/main/src/main/java/com/framsticks/params/Access.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.3 KB
Line 
1package com.framsticks.params;
2
3
4import com.framsticks.params.types.EventParam;
5import com.framsticks.params.types.ProcedureParam;
6
7
8/**
9 * The Interface Access. It's the most general class for storing data in
10 * framsticks. In descriptions of methods names "property" and "parameter" are
11 * synonyms.
12 *
13 * @author Jarek Szymczak <name.surname@gmail.com> (please replace name and
14 *         surname with my personal data)
15 */
16public interface Access extends ParamCollection {
17
18        String getTypeId();
19
20        Object call(String id, Object... arguments);
21
22        Object call(ProcedureParam param, Object... arguments);
23
24        <T> T get(int i, Class<T> type);
25
26        <T> T get(String id, Class<T> type);
27
28        <T> T get(ValueParam param, Class<T> type);
29
30        <T> int set(int i, T value);
31
32        <T> int set(String id, T value);
33
34        <T> int set(ValueParam param, T value);
35
36        void reg(EventParam param, EventListener<?> listener);
37
38        void regRemove(EventParam param, EventListener<?> listener);
39
40        /**
41         * Removes all the properties values.
42         */
43        void clearValues();
44
45        Access select(Object object);
46
47        Object getSelected();
48
49        Access cloneAccess();
50
51        Object createAccessee();
52
53        FramsClass getFramsClass();
54
55        void tryAutoAppend(Object object);
56
57        int getCompositeParamCount();
58
59        CompositeParam getCompositeParam(int number);
60
61        ParamBuilder buildParam(ParamBuilder builder);
62
63}
Note: See TracBrowser for help on using the repository browser.