Agent System POND 1.0 (1.7.2000)

PkgAgentSystem
Class PermissionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--PkgAgentSystem.PermissionEvent

public class PermissionEvent
extends EventObject

Event to tell the agent that his permissions have changed. Can be either a grant or a revoke event.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
AgentBase, PermissionChangeListener, Serialized Form

Field Summary
static int PERMISSION_GRANTED
          This permission was granted
static int PERMISSION_REVOKED
          This permission was revoked
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PermissionEvent(int type, Permission perm)
          Creates a new permission event of a certain type with a certain permission.
 
Method Summary
 Permission getPermission()
          Retrieve the permission of the event.
 int getType()
          Retrieve the type of the event (grant or revoke).
 String toString()
          Returns a string representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERMISSION_GRANTED

public static final int PERMISSION_GRANTED
This permission was granted

PERMISSION_REVOKED

public static final int PERMISSION_REVOKED
This permission was revoked
Constructor Detail

PermissionEvent

public PermissionEvent(int type,
                       Permission perm)
Creates a new permission event of a certain type with a certain permission.
Parameters:
type - the type of the event (grant or revoke)
perm - the permission of the event
Method Detail

getPermission

public Permission getPermission()
Retrieve the permission of the event.
Returns:
the permission of the event

getType

public int getType()
Retrieve the type of the event (grant or revoke).
Returns:
the type of the event

toString

public String toString()
Returns a string representation of this event. Includes the permission and the type.
Returns:
a string representation of the event (permission and type)
Overrides:
toString in class EventObject

Agent System POND 1.0 (1.7.2000)

Submit a bug

Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.