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 | |
---|
1 | package com.framsticks.standard; |
---|
2 | |
---|
3 | import java.util.ArrayList; |
---|
4 | import java.util.List; |
---|
5 | |
---|
6 | import com.framsticks.experiment.NetFile; |
---|
7 | import com.framsticks.model.Creature; |
---|
8 | import com.framsticks.model.Genotype; |
---|
9 | import com.framsticks.params.annotations.FramsClassAnnotation; |
---|
10 | import com.framsticks.params.annotations.ParamAnnotation; |
---|
11 | |
---|
12 | @FramsClassAnnotation(register = {Genotype.class, Creature.class}, registerFromInfo = {"Population", "GenePool"}) |
---|
13 | public 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.