-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathConditionInfoOnDemandCache.m
More file actions
36 lines (33 loc) · 1.13 KB
/
ConditionInfoOnDemandCache.m
File metadata and controls
36 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
classdef ConditionInfoOnDemandCache < ConditionDescriptorOnDemandCache
% This is a handle class used by condition descriptor for caching
% compute-on-demand property values. Value classes can compute
% properties on the fly in a property get method, but they can't store them
% for future quick recall. This class handles that, and making copies of it
% before modification alleviates any dependency between separate value
% instances.
properties(Transient)
conditionIdx
conditionSubsRaw
conditionSubs
conditionMembership
conditionMembershipRaw
listByConditionRaw
listByConditionWeightsRaw
listByCondition
listByConditionWeights
invalidCause
end
methods
function flush(c)
flush@ConditionDescriptorOnDemandCache(c);
c.conditionIdx = [];
c.conditionSubs = [];
c.conditionSubsRaw = [];
c.listByConditionRaw = [];
c.listByCondition = [];
c.invalidCause = {};
c.conditionMembership = [];
c.conditionMembershipRaw = [];
end
end
end