Ignore:
Timestamp:
07/16/13 23:31:35 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

for Joinables running

CHANGELOG:
Add WorkPackageLogic? and classes representing prime experiment state.

Add classes for PrimeExperiment? state.

Extract single netload routine in Simulator.

Working netload with dummy content in PrimeExperiment?.

More development with NetLoadSaveLogic? and PrimeExperiment?.

Improvement around prime.

Improve BufferedDispatcher?.isActive logic.

Add prime-all.xml configuration.

Manual connecting to existing simulators from GUI.

Guard in SimulatorConnector? against expdef mismatch.

Guard against empty target dispatcher in BufferedDispatcher?.

Make BufferedDispatcher? a Dispatcher (and Joinable).

Minor improvements.

Done StackedJoinable?, improve Experiment.

Develop StackedJoinable?.

Add StackedJoinable? utility joinables controller.

Add dependency on apache-commons-lang.

Add ready ListChange? on Simulators.

Improve hints in ListChange?.

Several improvements.

Found bug with dispatching in Experiment.

Minor improvements.

Fix bug with early finishing Server.

Many changes in Dispatching.

Fix bug with connection.

Do not obfuscate log with socket related exceptions.

Add SocketClosedException?.

Add SimulatorConnector?.

Work out conception of experiment composing of logics building blocks.

Rename SinkInterface? to Sink.

Move saving of Accesses into AccessOperations?.

Some improvements to Experiment.

Improve joinables.

Fix issue with joinables closing.

Add direct and managed consoles to popup menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/core/LocalTree.java

    r101 r102  
    1515import com.framsticks.params.types.ProcedureParam;
    1616import com.framsticks.util.FramsticksException;
     17import com.framsticks.util.dispatching.Dispatcher;
     18import com.framsticks.util.dispatching.DispatcherSetable;
    1719import com.framsticks.util.dispatching.Dispatching;
    1820import com.framsticks.util.dispatching.Future;
     
    3335        public LocalTree() {
    3436                super();
    35 
     37                bufferedDispatcher.setBuffer(false);
    3638        }
    3739
     40        @SuppressWarnings({ "rawtypes", "unchecked" })
    3841        @AutoAppendAnnotation
    3942        public void setRootObject(Object object) {
     
    4952                        joinableRootObject = (Joinable) object;
    5053                }
     54                if (object instanceof DispatcherSetable) {
     55                        DispatcherSetable<?> setable = (DispatcherSetable<?>) object;
     56                        setable.setDispatcher((Dispatcher) this);
     57                }
    5158        }
    5259
    5360        public Object getRootObject() {
    54                 return getAssignedRoot().getObject();
     61                Object result = getAssignedRoot().getObject();
     62                if (result == null) {
     63                        throw new FramsticksException().msg("object tree is empty").arg("tree", this);
     64                }
     65                return result;
    5566        }
    5667
    5768        public <T> T getRootObject(Class<T> type) {
    5869                Object result = getRootObject();
    59                 if (result == null) {
    60                         throw new FramsticksException().msg("object tree is empty").arg("tree", this);
    61                 }
    6270                if (!type.isInstance(result)) {
    6371                        throw new FramsticksException().msg("object tree holds object of different kind").arg("object", result).arg("requested", type).arg("tree", this);
     
    181189                }
    182190        }
     191
    183192}
Note: See TracChangeset for help on using the changeset viewer.