|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.kernel.RoleBitmap
public class RoleBitmap
A role bitmap (role_t) in AOS V5 is 32 bits, ordered left to right. The rightmost (unused) bits are left 0.
| Field Summary | |
|---|---|
static java.lang.String |
APPMW_ROLE_NAME
|
static java.lang.String |
INIT_ROLE_NAME
Two standard role names |
static int |
NBITS
|
static java.lang.String |
ROLE_AC_ACCESS_ONLY
Role for AC access only (no communication etc) |
static java.lang.String |
ROLE_COMM_ONLY
Role for communication only |
| Constructor Summary | |
|---|---|
RoleBitmap(int start,
int end)
Creates a new instance of RoleBitmap
The bitmap will be initialized to a bitmap which has set
the bits in the range start (inclusive) to end (exclusive). |
|
RoleBitmap(java.lang.String marshalled)
|
|
| Method Summary | |
|---|---|
void |
clear(int bitIndex)
|
boolean |
get(int bitIndex)
|
static RoleBitmap |
getDefault(java.lang.String RoleName)
|
boolean |
isSet(java.lang.String methodName)
Check if the bit for the given method is set |
java.lang.String |
marshall()
|
void |
set(int bitIndex)
|
void |
set(int bitIndex,
boolean value)
|
boolean |
strictSupersetOf(RoleBitmap subBitmap)
Checks if the role bitmap is a strict superset |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NBITS
public static final java.lang.String INIT_ROLE_NAME
public static final java.lang.String APPMW_ROLE_NAME
public static final java.lang.String ROLE_AC_ACCESS_ONLY
public static final java.lang.String ROLE_COMM_ONLY
| Constructor Detail |
|---|
public RoleBitmap(int start,
int end)
RoleBitmap
The bitmap will be initialized to a bitmap which has set
the bits in the range start (inclusive) to end (exclusive).
The rest of the bits are unset.
If start == end, then no bits will be set.
public RoleBitmap(java.lang.String marshalled)
| Method Detail |
|---|
public static RoleBitmap getDefault(java.lang.String RoleName)
throws BadArgumentException
BadArgumentExceptionpublic boolean strictSupersetOf(RoleBitmap subBitmap)
subBitmap - the subset bitmap
public boolean isSet(java.lang.String methodName)
throws BadArgumentException
methodName - the simple name of the kernel primitive
BadArgumentException - if the methodName is not the name of a kernel primitive.
public void set(int bitIndex)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public void set(int bitIndex,
boolean value)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public void clear(int bitIndex)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
public boolean get(int bitIndex)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic java.lang.String marshall()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||