source: java/main/src/main/java/com/framsticks/standard/StandardState.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 987 bytes
Line 
1package com.framsticks.standard;
2
3import java.util.ArrayList;
4import java.util.List;
5
6import com.framsticks.experiment.NetFile;
7import com.framsticks.model.Creature;
8import com.framsticks.model.Genotype;
9import com.framsticks.params.annotations.FramsClassAnnotation;
10import com.framsticks.params.annotations.ParamAnnotation;
11
12@FramsClassAnnotation(register = {Genotype.class, Creature.class}, registerFromInfo = {"Population", "GenePool"})
13public class StandardState implements NetFile {
14
15        @ParamAnnotation(stringType = "o sim_params")
16        public Object simParams;
17
18        @ParamAnnotation(stringType = "l GenePool")
19        public final List<Object> genepools = new ArrayList<>();
20
21        @ParamAnnotation(stringType = "l Population")
22        public final List<Object> populations = new ArrayList<>();
23
24        @Override
25        public String getShortDescription() {
26                return genepools.size() + " genepools, " + populations.size() + " populations";
27        }
28
29        @Override
30        public String toString() {
31                return getShortDescription();
32        }
33}
Note: See TracBrowser for help on using the repository browser.