Symphony-DAS / symphony-matlab

Symphony Data Acquisition System
http://symphony-das.github.io
MIT License
19 stars 5 forks source link

Change properties that use cellArrayFromEnumerable from properties to methods #17

Closed cafarm closed 8 years ago

cafarm commented 8 years ago

Some classes that derive from CoreObject have properties that call cellArrayFromEnumerable. For example, EpochGroup:

function b = get.epochBlocks(obj)
    b = obj.cellArrayFromEnumerable(obj.cobj.EpochBlocks, @symphonyui.core.persistent.EpochBlock);
end

These properties should probably be changed to methods because they're potentially long running. The only exception might be when the enumerable list is guaranteed to be short.

For the example above, the method would look like:

function b = getEpochBlocks(obj)
    b = obj.cellArrayFromEnumerable(obj.cobj.EpochBlocks, @symphonyui.core.persistent.EpochBlock);
end