Ignore:
Timestamp:
09/23/13 18:54:07 (11 years ago)
Author:
psniegowski
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/params/PropertiesObject.java

    r105 r107  
    11package com.framsticks.params;
    22
    3 import java.util.Map;
    4 import java.util.TreeMap;
    5 
    6 import com.framsticks.util.lang.Casting;
    7 
    8 public class PropertiesObject {
    9 
    10         protected final String framsTypeName;
    11         protected final Map<String, Object> values = new TreeMap<>();
     3public class PropertiesObject extends MapBasedObject {
    124
    135        /**
    14          * @param framsTypeName
     6         *
    157         */
    168        public PropertiesObject(String framsTypeName) {
    17                 this.framsTypeName = framsTypeName;
     9                super(framsTypeName);
    1810        }
    1911
    20         public <T> void set(String id, T value) {
    21                 values.put(id, value);
    22         }
    23 
    24         public <T> T get(String id, Class<T> type) {
    25                 return Casting.nullOrThrowCast(type, values.get(id));
    26         }
    27 
    28         public void clear() {
    29                 values.clear();
    30         }
    31 
    32         public int size() {
    33                 return values.size();
    34         }
    35 
    36         @Override
    37         public String toString() {
    38                 return values.toString();
    39         }
    40 
    41         /**
    42          * @return the framsTypeName
    43          */
    44         public String getFramsTypeName() {
    45                 return framsTypeName;
    46         }
    4712}
Note: See TracChangeset for help on using the changeset viewer.