public class FlagModel extends java.lang.Object implements IFlagModel
Constructor and Description |
---|
FlagModel() |
Modifier and Type | Method and Description |
---|---|
void |
clear(Flag flag)
Clear the given flag (assign false).
|
RoleAssignmentFlag |
getRoleAssignmentFlag()
Role flag.
|
boolean |
isSet(Flag flag)
Check if the given flag is set or not.
|
void |
set(Flag flag)
Set the given flag (assign true).
|
void |
set(Flag flag,
boolean value)
Set the given flag to the specified value.
|
void |
setRoleAssignmentFlag(RoleAssignmentFlag value)
Set the role assignment flag the the given value.
|
boolean |
update(IPerception perception)
Called to trigger a update of the Flags based on the given perception
object.
|
public boolean update(IPerception perception)
IFlagModel
update
in interface IFlagModel
perception
- - the Perceptionpublic void set(Flag flag)
IFlagModel
set
in interface IFlagModel
flag
- - the flag to setpublic void clear(Flag flag)
IFlagModel
clear
in interface IFlagModel
flag
- - the flag to clearpublic void set(Flag flag, boolean value)
IFlagModel
set
in interface IFlagModel
flag
- - the flag to set/clearvalue
- - the new value of the flagpublic boolean isSet(Flag flag)
IFlagModel
isSet
in interface IFlagModel
flag
- - the flag to checkpublic RoleAssignmentFlag getRoleAssignmentFlag()
IFlagModel
getRoleAssignmentFlag
in interface IFlagModel
public void setRoleAssignmentFlag(RoleAssignmentFlag value)
IFlagModel
setRoleAssignmentFlag
in interface IFlagModel
value
- - the new value of the role-assignment-flag