Ignore:
Timestamp:
06/26/13 13:27:31 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • use java annotations to mark classes and fields to be used when:
    • using java classes with ReflectionAccess? to represent remote objects with FramsClass? description found by "info ..." requests
    • to build up FramsClass? representation of objects not present at remote server
  • allow using primitive types (instead of wraping counterparts) in reflected classes
  • rework FramsClass? creation process (add FramsClassBuilder?)
  • add more tests

CHANGELOG:
Prepare model.World class.

Minor change.

Use primitive types for Genotype and Creature classes.

Use primitive types in model.Neuro* classes.

Use primitive types in model.Joint* classes.

Use primitive types in model.Part* classes.

Fix primitive values.

Extract FramsClassBuilder?.

Add tests of Model classes.

More fixes.

Refactorize out ParamCandidate?.

Several fixes.

Fix all regressions after introducing annotations.

Use annotations throughout the project.

Add exception classes.

Improve creation of FramsClass?.

More changes.

Many changes regarding annotations.

Annotate classes in com.framsticks.model package.

Remove manual FramsClass? constructor.

Construct FramsClass? for Creature. Add test.

Add default values to the ParamAnnotation?.

Add ParamBuilderTest? and ParamAnnotation?.

Add FramsClassAnnotation?.

File:
1 edited

Legend:

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

    r85 r86  
    99public class FileSource implements SourceInterface {
    1010
    11         private final BufferedReader reader;
     11        private BufferedReader reader;
    1212        private final String filename;
    1313
    14         protected FileSource(InputStream stream, String filename) {
     14        public FileSource(InputStream stream, String filename) {
    1515                this.filename = filename;
    1616                this.reader = new BufferedReader(new InputStreamReader(stream, Encoding.getFramsticksCharset()));
     
    2828        public String readLine()
    2929        {
     30                assert !isClosed();
    3031                try
    3132                {
     
    8081
    8182                }
     83                reader = null;
     84        }
     85
     86        @Override
     87        public boolean isClosed() {
     88                return reader == null;
    8289        }
    8390
Note: See TracChangeset for help on using the changeset viewer.