Class SasBundle
- java.lang.Object
-
- com.opencloud.rhino.facilities.sas.bundle.Bundle
-
- com.opencloud.rhino.facilities.sas.bundle.SasBundle
-
public class SasBundle extends Bundle
-
-
Constructor Summary
Constructors Constructor Description SasBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEnums(Map<String,Map<Integer,String>> enums, String packageName)
Add SAS enums to the bundlevoid
addEvents(int prefix, Iterable<EventDescription> events, String packageName, Set<String> enums)
Add SAS events to the bundleSortedMap<Integer,EventDescription>
getEvents()
BundleInfo
getInfo()
void
setEvents(SortedMap<Integer,EventDescription> events)
void
setInfo(BundleInfo info)
-
-
-
Field Detail
-
OFFSET
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.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEvents
public SortedMap<Integer,EventDescription> getEvents()
-
setEvents
public void setEvents(SortedMap<Integer,EventDescription> events)
-
getInfo
public BundleInfo getInfo()
-
setInfo
public void setInfo(BundleInfo info)
-
addEvents
public void addEvents(int prefix, Iterable<EventDescription> events, String packageName, Set<String> enums)
Add SAS events to the bundle
- Parameters:
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.
-
-