public class SasBundle extends Bundle
Modifier and Type | Field and Description |
---|---|
static int |
OFFSET
The offset to shift event prefixes by.
|
Constructor and Description |
---|
SasBundle() |
Modifier and Type | Method and Description |
---|---|
void |
addEnums(Map<String,Map<Integer,String>> enums,
String packageName)
Add SAS enums to the bundle
|
void |
addEvents(int prefix,
Iterable<EventDescription> events,
String packageName,
Set<String> enums)
Add SAS events to the bundle
|
SortedMap<Integer,EventDescription> |
getEvents() |
BundleInfo |
getInfo() |
void |
setEvents(SortedMap<Integer,EventDescription> events) |
void |
setInfo(BundleInfo info) |
public static final int OFFSET
The offset to shift event prefixes by. Event IDs in SAS are 32 bits with the first 8 bits fixed as 0x0F. We split the ID into two segments, the first 16 bits are from prefixes assigned to each mini-bundle, the remaining 8 bits are from the index of the event in the mini-bundle.
public SortedMap<Integer,EventDescription> getEvents()
public void setEvents(SortedMap<Integer,EventDescription> events)
public BundleInfo getInfo()
public void setInfo(BundleInfo info)
public void addEvents(int prefix, Iterable<EventDescription> events, String packageName, Set<String> enums)
Add SAS events to the bundle
prefix
- The prefix for this set of events.
Each mini-bundle has a prefix that is combined with the event ID.events
- The events to add to the bundle.
These are taken from one mini-bundle.packageName
- The package name to prefix to enum names from the same mini-bundle.enums
- Enum names from the same bundle.
These will be prefixed with the package name in event messages.