Ignore:
Timestamp:
06/30/13 12:48:20 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • loading f0 schema with XmlLoader?
  • use XmlLoader? to load configuration
  • introduce unified fork-join model of various entities

(Instances, Connections, GUI Frames, etc.),
all those entities clean up gracefully on
shutdown, which may be initialized by user
or by some entity

  • basing on above, simplify several organizing classes

(Observer, main class)

(to host native frams server process from Java level)

CHANGELOG:
Remove redundant Observer class.

Clean up in AbstractJoinable?.

Update ExternalProcess? class to changes in joining model.

Another sweep through code with FindBugs?.

Find bug with not joining RemoteInstance?.

Joining almost works.

Much improved joining model.

More improvement to joining model.

Add logging messages around joinable operations.

Rename methods in AbstractJoinable?.

Improve Joinable.

Rewrite of entity structure.

More simplifications with entities.

Further improve joinables.

Let Frame compose from JFrame instead of inheriting.

Add join classes.

Improvements of closing.

Add Builder interface.

Add FramsServerTest?.xml

FramsServer? may be configured through xml.

Make Framsticks main class an Observer of Entities.

Make Observer a generic type.

Remove variables regarding to removed endpoint.

Simplify observer (remove endpoints).

More changes to Observer and Endpoint.

Minor improvements.

Add OutputListener? to ExternalProcess?.

Improve testing of ExternalProcess?.

Add ExternalProcess? runner.

Rename the Program class to Framsticks.

Migrate Program to use XmlLoader? configuration.

First steps with configuration using XmlLoader?.

Fix several bugs.

Move all f0 classes to apriopriate package.

XmlLoader? is able to load Schema.

XmlLoader? is loading classes and props.

Add GroupBuilder?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/test/java/com/framsticks/parsers/F0ParserTest.java

    r87 r88  
    55import com.framsticks.model.*;
    66import com.framsticks.model.Package;
     7import com.framsticks.model.f0.Schema;
    78import com.framsticks.params.*;
    89import com.framsticks.params.types.FloatParam;
     
    2930        @BeforeClass
    3031        public void setUp() throws Exception {
    31                 schema = new Schema(Schema.getDefaultDefinitionAsStream());
     32                schema = Schema.load(Schema.getDefaultDefinitionAsStream());
    3233                Package.register(schema.getRegistry());
    3334        }
     
    3536        @Test
    3637        public void primitiveParam() {
    37                 FramsClass joint = schema.getRegistry().getInfoFromCache("j");
     38                FramsClass joint = schema.getFramsClass("j");
    3839                PrimitiveParam<?> dx = joint.getParamEntry("dx", PrimitiveParam.class);
    3940                assertThat(dx).isInstanceOf(FloatParam.class);
     
    4748        @Test
    4849        public void readF0() throws IOException, ParseException {
     50                assertThat(schema.getFramsClass("p")).isInstanceOf(FramsClass.class);
     51                assertThat(schema.getRegistry().getInfoFromCache("p").getParamEntry("as", FloatParam.class).getDef(Double.class)).isEqualTo(0.25, delta(0.0));
     52
    4953                accesses = new F0Parser(schema, F0ParserTest.class.getResourceAsStream("/parsers/f0_example.txt")).parse();
    5054
     
    7579                assertThat(model.getJoints().get(0).part1).isEqualTo(0);
    7680                assertThat(model.getJoints().get(0).part2).isEqualTo(1);
     81                assertThat(model.getNeuroDefs().size()).isEqualTo(6);
    7782                assertThat(model.getNeuroDefs().get(0).part).isEqualTo(1);
    7883                assertThat(model.getNeuroDefs().get(0).joint).isEqualTo(-1);
     
    8994        public void print() throws Exception {
    9095                ListSink sink = new ListSink();
     96
     97
    9198                new F0Writer(schema, model, sink).write();
    9299
Note: See TracChangeset for help on using the changeset viewer.