issrg.pba.management.manager
Interface PManagementListener

All Known Implementing Classes:
FileTrustPanel, PManagementFrame, TrustPanel

public interface PManagementListener

The interface that is implemented by all objects wishing to be informed when a change happens in the PManagement Model.

Version:
0.6.2008.06.19
Author:
mfb4@kent.ac.uk

Method Summary
 void stateChanged(PManagement pManagement, PManagement.PMAgentReference agentReference)
          This method is called on every listener when an alteration happens.
 

Method Detail

stateChanged

void stateChanged(PManagement pManagement,
                  PManagement.PMAgentReference agentReference)
This method is called on every listener when an alteration happens. anywhere in the Model.

The first parameter will always be the PManagement that the listener was registered to listen to.

If the alteration happens in one of the PERMIS agent references then that is passed down as the second parameter. otherwise null is passed down.

If your listener is only interested in a particular agent, this can be used to narrow down the area that was altered.

Parameters:
pManagement - the Model that has an alteration in it.
agentReference - the agent reference or null if none affected.
Since:
0.6.2008.06.19