Ignore:
Timestamp:
07/02/13 16:20:07 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

CHANGELOG:
Make ProcedureParam? hold only ValueParams?.

Use id instead of names when naming gui components internally.

Basic procedure calling in GUI.

The actual procedure call is currently only backed
by the ObjectInstance?.

Add UnimplementedException?.

Improve naming of various gui elements.

Allow easy navigating in FEST Swing testing.

Add optional explicit order attribute to FramsClassAnnotation?.

That's because java reflection does return declared members
in any specific order. That ordering is needed only for
classes that have no representation in framsticks and need
a deterministic ordering of params.

Add ControlOwner? interface.

Add test for procedure calling in Browser.

First version of ParamAnnotation? for procedures.

Development of ProcedureParam?.

Add draft version of ProcedureParam? implementation in ReflectionAccess?.

Allow viewing FramsClasses? in gui Browser.

Extract ResourceBuilder? from ModelBuilder?.

Remove internalId from Param.

It was currently completely not utilised. Whether it is still needed
after introduction of ParamAnnotation? is arguable.

Add remaining param attributes to ParamAnnotation?.

Change AutoBuilder? semantics.

AutoBuilder? returns list of objects that are to be appended
with methods @AutoAppendAnnotation?.

This allows to omit explicit addition of ModelPackage? to instance
if the instance uses ModelBuilder? (registration of ModelPackage? comes
from schema).

Fix params ordering problem in auto created FramsClasses?.

Improve ObjectInstance?.

Several fixes to ModelBuilder?.

Improve test for ObjectInstance? in Browser.

Make initialization of robot static.

With robot recreated for second browser test, the test hanged
deep in AWT.

Add base convenience base test for Browser tests.

More tests to ObjectInstance?.

Rename Dispatcher.invokeLater() to dispatch().

Add assertDispatch.

It allows assertions in other threads, than TestNGInvoker.
Assertions are gathered after each method invocation and rethrown.

Use timeOut annotation attribute for tests involving some waiting.

Remove firstTask method (merge with joinableStart).

Clean up leftovers.

Remove unused FavouritesXMLFactory (the reading part is already
completely done with generic XmlLoader?, and writing part will be done
based on the same approach if needed).
Move UserFavourite? to the com.framsticks.gui.configuration package.

Remove GenotypeBrowser? as to specific.

This functionality will be available in ObjectInstance?.

Add interface ParamsPackage?.

Package containing registration of Java classes meant to use with
ReflectionAccess? may be in Instance using configuration.

Minor changes.

Make Group immutable.

Add AutoBuilder? interface extending Builder - only those would
be used to automatically build from XML.

Fix groups in FramsClass?.

Minor naming cleanup in Registry.

Add ModelComponent? interface.

All class creating the Model are implementing that interface.

Extract Model.build into ModelBuilder?.

ModelBuilder? will be compatible with other builders
and allow using it from configuration.

Fix NeuroConnection?.

Add synchronous get operation for dispatchers.

Rename JoinableMonitor? to Monitor.

Add ObjectInstance?.

This class is mainly for demonstration
and testing purposes.

Improve FramsServer? runner.

  • improve ExternalProcess? runner,
  • runner can kill the server but also react properly, when the server exists on it's own,
  • set default path to search for framsticks server installation,
  • add LoggingOutputListener?.
File:
1 edited

Legend:

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

    r88 r90  
    44import com.framsticks.params.annotations.ParamAnnotation;
    55import com.framsticks.util.FramsticksException;
     6import com.framsticks.util.lang.Containers;
    67// import com.framsticks.util.FramsticksException;
    78
     
    5152        // protected Map<String, Integer> paramIdMap = new HashMap<String, Integer>();
    5253
    53         public Collection<Param> getParamEntries() {
    54                 return paramList;
     54        @ParamAnnotation(id = "props", name = "props")
     55        public List<Param> getParamEntries() {
     56                return Collections.unmodifiableList(paramList);
    5557        }
    5658
     
    6062                this.name = builder.getName();
    6163                this.description = builder.getDescription();
    62                 this.groups = builder.groups;
     64                this.groups = Containers.build(builder.groupBuilders);
    6365                this.paramList = builder.params;
    6466
    6567                for (Param param : paramList) {
    6668                        paramEntryMap.put(param.getId(), param);
    67                         try {
    68                                 Group group = groups.get(param.getGroup());
    69                                 if (group != null) {
    70                                         group.addProperty(param);
    71                                 }
    72                         } catch (IndexOutOfBoundsException ignored) {
    73 
    74                         }
    7569                }
    7670
     
    8882        }
    8983
    90         /**
    91          * Gets the group member.
    92          *
    93          * @param gi
    94          *            the offset of group
    95          * @param pi
    96          *            the offset of member within a group
    97          * @return the pi-th member of group gi
    98          */
    99         public Param getGroupMember(int gi, int pi) {
    100                 if (gi < 0 || pi < 0 || gi >= groups.size()) {
    101                         return null;
    102                 }
    103                 Group group = groups.get(gi);
    104                 return (group != null ? group.getProperty(pi) : null);
     84        public Group getGroup(int groupNumber) {
     85                return Containers.getFromList(groups, groupNumber, "group", this);
    10586        }
    10687
    107         /**
    108          * Gets the group name.
    109          *
    110          * @param gi
    111          *            the offset of group
    112          * @return the group name
    113          */
    114         public String getGroupName(int gi) {
    115                 if (gi < 0 || gi >= groups.size())
    116                         return null;
    117                 return groups.get(gi).name;
    118         }
     88        // /**
     89        //  * Gets the group member.
     90        //  *
     91        //  * @param gi
     92        //  *            the offset of group
     93        //  * @param pi
     94        //  *            the offset of member within a group
     95        //  * @return the pi-th member of group gi
     96        //  */
     97        // public Param getGroupMember(int gi, int pi) {
     98        //      if (gi < 0 || pi < 0 || gi >= groups.size()) {
     99        //              return null;
     100        //      }
     101        //      Group group = groups.get(gi);
     102        //      return (group != null ? group.getProperty(pi) : null);
     103        // }
     104
     105        // /**
     106        //  * Gets the group name.
     107        //  *
     108        //  * @param gi
     109        //  *            the offset of group
     110        //  * @return the group name
     111        //  */
     112        // public String getGroupName(int gi) {
     113        //      if (gi < 0 || gi >= groups.size())
     114        //              return null;
     115        //      return groups.get(gi).name;
     116        // }
    119117
    120118        @ParamAnnotation
Note: See TracChangeset for help on using the changeset viewer.