source: java/main/src/main/java/com/framsticks/test/prime/ExpState.java @ 102

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

HIGHLIGHTS:

for Joinables running

CHANGELOG:
Add WorkPackageLogic? and classes representing prime experiment state.

Add classes for PrimeExperiment? state.

Extract single netload routine in Simulator.

Working netload with dummy content in PrimeExperiment?.

More development with NetLoadSaveLogic? and PrimeExperiment?.

Improvement around prime.

Improve BufferedDispatcher?.isActive logic.

Add prime-all.xml configuration.

Manual connecting to existing simulators from GUI.

Guard in SimulatorConnector? against expdef mismatch.

Guard against empty target dispatcher in BufferedDispatcher?.

Make BufferedDispatcher? a Dispatcher (and Joinable).

Minor improvements.

Done StackedJoinable?, improve Experiment.

Develop StackedJoinable?.

Add StackedJoinable? utility joinables controller.

Add dependency on apache-commons-lang.

Add ready ListChange? on Simulators.

Improve hints in ListChange?.

Several improvements.

Found bug with dispatching in Experiment.

Minor improvements.

Fix bug with early finishing Server.

Many changes in Dispatching.

Fix bug with connection.

Do not obfuscate log with socket related exceptions.

Add SocketClosedException?.

Add SimulatorConnector?.

Work out conception of experiment composing of logics building blocks.

Rename SinkInterface? to Sink.

Move saving of Accesses into AccessOperations?.

Some improvements to Experiment.

Improve joinables.

Fix issue with joinables closing.

Add direct and managed consoles to popup menu.

File size: 884 bytes
Line 
1package com.framsticks.test.prime;
2
3import java.util.ArrayList;
4import java.util.List;
5
6import org.apache.commons.lang.StringUtils;
7
8import com.framsticks.params.annotations.FramsClassAnnotation;
9import com.framsticks.params.annotations.ParamAnnotation;
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
20        public String getResult() {
21                return StringUtils.join(resultList, ",");
22        }
23
24        @ParamAnnotation
25        public void setResult(String result) {
26                resultList.clear();
27                for (String s : StringUtils.split(result, ",")) {
28                        resultList.add(Integer.valueOf(s));
29                }
30        }
31
32        /**
33         * @return the resultList
34         */
35        public List<Integer> getResultList() {
36                return resultList;
37        }
38
39        @Override
40        public String toString() {
41                return "(" + current_number + "):" + resultList;
42        }
43}
Note: See TracBrowser for help on using the repository browser.