Package org.yamcs.xtceproc
Class Subscription
- java.lang.Object
-
- org.yamcs.xtceproc.Subscription
-
public class Subscription extends Object
keeps track of the parameters and containers subscribed (because we only want to extract those)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll(SequenceContainer seq)Called in the cases when seq is part of other containers through aggregation.voidaddParameter(Parameter parameter)Add to the subscription all the entries and containers on which this parameter dependsvoidaddSequenceContainer(SequenceContainer seq)voidaddSequenceEntry(SequenceEntry se)Collection<SequenceContainer>getContainers()Get the set of all containers subscribedSortedSet<SequenceEntry>getEntries(SequenceContainer container)Set<SequenceContainer>getInheritingContainers(SequenceContainer container)StringtoString()
-
-
-
Method Detail
-
addSequenceContainer
public void addSequenceContainer(SequenceContainer seq)
-
addAll
public void addAll(SequenceContainer seq)
Called in the cases when seq is part of other containers through aggregation. The parent container will need to know the size of this one so we add all entries of seq.- Parameters:
seq-
-
addSequenceEntry
public void addSequenceEntry(SequenceEntry se)
-
addParameter
public void addParameter(Parameter parameter)
Add to the subscription all the entries and containers on which this parameter depends- Parameters:
parameter-
-
getEntries
public SortedSet<SequenceEntry> getEntries(SequenceContainer container)
-
getInheritingContainers
public Set<SequenceContainer> getInheritingContainers(SequenceContainer container)
-
getContainers
public Collection<SequenceContainer> getContainers()
Get the set of all containers subscribed- Returns:
- set of containers subscribed
-
-