source: java/main/src/main/java/com/framsticks/test/prime/ExpState.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: 940 bytes
Line 
1package com.framsticks.test.prime;
2
3import java.util.ArrayList;
4import java.util.Collections;
5import java.util.List;
6
7import com.framsticks.params.annotations.FramsClassAnnotation;
8import com.framsticks.params.annotations.ParamAnnotation;
9import com.framsticks.params.types.UniversalParam;
10
11@FramsClassAnnotation
12public class ExpState {
13
14        @ParamAnnotation
15        public int current_number;
16
17        protected final List<Integer> resultList = new ArrayList<>();
18
19        @ParamAnnotation(paramType = UniversalParam.class)
20        public List<Integer> getResult() {
21                return Collections.unmodifiableList(resultList);
22        }
23
24
25        @ParamAnnotation(paramType = UniversalParam.class)
26        public void setResult(List<Integer> list) {
27                resultList.clear();
28                resultList.addAll(list);
29        }
30
31        /**
32         * @return the resultList
33         */
34        public List<Integer> getResultList() {
35                return resultList;
36        }
37
38        @Override
39        public String toString() {
40                return "(" + current_number + "):" + resultList;
41        }
42}
Note: See TracBrowser for help on using the repository browser.