|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.robots.core.RobotEnforcer
public class RobotEnforcer
Field Summary | |
---|---|
protected javax.swing.JComboBox |
_action
|
protected javax.swing.JTextField |
_domain
kaos.policy.enforcement.obligation.TriggerConditionListener interface implementation - end |
protected Guard |
_guard
|
protected KAoSAgentDirectoryServiceProxy |
_kadsp
|
protected boolean |
_kaosEnabled
|
protected Logger |
_logger
|
protected javax.swing.JTextField |
_range
|
protected KAoSRobot |
_robot
|
protected javax.swing.JComboBox |
_role
|
protected KAoSServiceRoot |
_sr
|
protected static java.io.PrintStream |
LOGGER
|
static java.lang.String |
TRANSPORT_PROPERTY_KEY
|
Constructor Summary | |
---|---|
RobotEnforcer(java.util.Vector actions)
Constructor. |
|
RobotEnforcer(java.util.Vector actions,
KAoSRobot robot)
|
Method Summary | |
---|---|
javax.swing.JPanel |
buildKAoSPanel()
|
void |
checkArea(ActionInstanceDescription aid)
This method is a HACK to test definition of a restricted area |
java.util.Vector |
checkObligations(ActionInstanceDescription aid)
This method checks for obligations based on the aid |
void |
checkPermission(ActionInstanceDescription aid)
This method checks permissions |
protected void |
executeObligations(java.util.Vector obligations)
|
java.util.Vector |
getAdjustedMoveToActions(ActionInstanceDescription aid)
|
static Coordinate |
getCoordinateFromPointInstance(KAoSInstance point)
|
java.lang.String |
getID()
Return the unique identifier of this observer. |
java.util.Vector |
makeActionAllowable(ActionInstanceDescription aid)
|
protected void |
printDebugString(java.lang.String msg,
int loggerDisplayLevel)
|
void |
registerWithKaos()
This method registers with KAoS |
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
void |
updateTriggerCondition(BasicActionDescription triggerCondition)
kaos.policy.enforcement.obligation.TriggerConditionListener interface implementation - begin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Logger _logger
protected javax.swing.JTextField _domain
protected javax.swing.JComboBox _action
protected javax.swing.JComboBox _role
protected javax.swing.JTextField _range
protected static final java.io.PrintStream LOGGER
protected KAoSServiceRoot _sr
protected KAoSAgentDirectoryServiceProxy _kadsp
protected boolean _kaosEnabled
protected KAoSRobot _robot
public static final java.lang.String TRANSPORT_PROPERTY_KEY
protected Guard _guard
Constructor Detail |
---|
public RobotEnforcer(java.util.Vector actions)
name
- String used as agent nameactions
- Vector of action to monitiorpublic RobotEnforcer(java.util.Vector actions, KAoSRobot robot)
Method Detail |
---|
public void registerWithKaos() throws java.lang.Exception
java.lang.Exception
public void checkArea(ActionInstanceDescription aid) throws java.lang.SecurityException
java.lang.SecurityException
public void checkPermission(ActionInstanceDescription aid) throws java.lang.SecurityException, java.lang.NullPointerException, ServiceFailure
aid
- ActionInstanceDescription to check policies about
java.lang.SecurityException
java.lang.NullPointerException
ServiceFailure
public java.util.Vector makeActionAllowable(ActionInstanceDescription aid)
public java.util.Vector getAdjustedMoveToActions(ActionInstanceDescription aid)
public static Coordinate getCoordinateFromPointInstance(KAoSInstance point) throws ValueNotSet
ValueNotSet
public java.util.Vector checkObligations(ActionInstanceDescription aid)
aid
- ActionInstanceDescription to check obligations about
public javax.swing.JPanel buildKAoSPanel()
public void updateTriggerCondition(BasicActionDescription triggerCondition)
updateTriggerCondition
in interface TriggerConditionListener
triggerCondition
- BasicActionDescription describes the trigger condition the listener has registered for.protected void executeObligations(java.util.Vector obligations)
public void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update)
update
in interface KAoSObserver
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.public java.lang.String getID()
getID
in interface KAoSObserver
protected void printDebugString(java.lang.String msg, int loggerDisplayLevel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |