|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.KAoSActorImpl
kaos.policy.history.LoginSimulationAgent
public class LoginSimulationAgent
$Revision: 1.4 $
| Field Summary | |
|---|---|
protected KAoSServiceRoot |
_ksr
|
protected MessageTransportService |
_mts
|
protected java.lang.String |
_name
|
protected java.util.Vector |
_observers
|
protected java.util.Random |
_random
|
protected java.util.HashMap |
_updateCond
|
| Fields inherited from class kaos.core.csi.KAoSActorImpl |
|---|
_autoCommit, _lctr, _propertiesToModify, _registered, _registration, _transports, _transportSupport |
| Constructor Summary | |
|---|---|
LoginSimulationAgent(java.lang.String guid,
java.lang.String name,
java.util.Vector domainNames,
Transport transport)
|
|
| Method Summary | |
|---|---|
void |
deregisterObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Deregister the given KAoSObserver for the given update type from the registry of observers associated with this KAoSObservable. |
void |
generateVals()
This method generates an AID for a certain action result, with its status parameter randomly chosen as either failed or succeeded. |
java.util.List |
getHumanActors()
|
static void |
main(java.lang.String[] args)
|
void |
notify(java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Notify observers interested in the given updateType wiht the given update object. |
void |
receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. |
void |
registerObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
Register the given KAoSObserver with this KAoSObservable for updates described by the updateType and updateConstraints. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector _observers
protected KAoSServiceRoot _ksr
protected MessageTransportService _mts
protected java.lang.String _name
protected java.util.Random _random
protected java.util.HashMap _updateCond
| Constructor Detail |
|---|
public LoginSimulationAgent(java.lang.String guid,
java.lang.String name,
java.util.Vector domainNames,
Transport transport)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void receiveMessage(TransportMessage tmsg)
KAoSActorImpl
receiveMessage in class KAoSActorImplMessageListener,
TransportMessage,
"JAS Specification, Section(s) 3.4.2, 4.7.2"
public java.util.List getHumanActors()
throws NoSuchActorException
NoSuchActorException
public void registerObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
registerObserver in interface KAoSObservableupdateType - String indicating type of update the KAoSObserver is interested in.updateCondition - Object describing the conditions under which to send the update. For now this
object is ignored.observer - KAoSObserver registering with for updates.
public void deregisterObserver(java.lang.String updateType,
java.lang.Object updateCondition,
KAoSObserver observer)
deregisterObserver in interface KAoSObservableupdateType - String indicating type of update the KAoSObserver is no longer interested in.updateCondition - Object describing the conditions under which to send the update. For now this
object is ignored.observer - KAoSObserver deregistering.
public void notify(java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
notify in interface KAoSObservableupdateType - String describing the type of update to perform.updateCondition - Object describing the conditions under which to send the update. For now this
object is ignored.update - Object containing the update.public void generateVals()
none. -
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||