Package | Description |
---|---|
simkit.smdx |
Contains basic classes to represent the entities in a combat simulation.
|
simkit.smdx.test |
Modifier and Type | Class and Description |
---|---|
class |
CookieCutterMediator
Mediator for CookieCutter detection.
|
Modifier and Type | Field and Description |
---|---|
private java.util.WeakHashMap<java.lang.Class<? extends Sensor>,java.util.Map<java.lang.Class<? extends Moveable>,SensorTargetMediator>> |
SensorTargetMediatorFactory.cache
Holds the Mediators that have been added to this factory, key by Sensor
and Moveable (target)
|
protected MediatorFactory<Sensor,Moveable,SensorTargetMediator> |
SensorTargetReferee.sensorTargetMediatorFactory
Holds the instance of the SensorTargetMediatorFactory.
|
Modifier and Type | Method and Description |
---|---|
<S extends SensorTargetMediator> |
SensorTargetMediatorFactory.addMediatorFor(java.lang.Class<? extends Sensor> sensorClass,
java.lang.Class<? extends Moveable> targetClass,
S mediatorInstance) |
Modifier and Type | Method and Description |
---|---|
static MediatorFactory<Sensor,Moveable,SensorTargetMediator> |
SensorTargetMediatorFactory.getInstance() |
java.util.Map<java.lang.Class<? extends Sensor>,java.util.Map<java.lang.Class<? extends Moveable>,SensorTargetMediator>> |
SensorTargetMediatorFactory.getMediators()
Returns a copy of the HashMap of Mediators that have been added to this
MediatorFactory.
|
Modifier and Type | Method and Description |
---|---|
static void |
SensorTargetMediatorFactory.addMediator(java.lang.Class<? extends Sensor> sensorClass,
java.lang.Class<? extends Moveable> targetClass,
SensorTargetMediator mediatorInstance) |
void |
SensorTargetMediatorFactory.addMediatorFor(Sensor sensor,
Moveable target,
SensorTargetMediator mediatorInstance) |
Modifier and Type | Method and Description |
---|---|
static void |
SensorTargetMediatorFactory.addMediator(java.lang.Class<? extends Sensor> sensorClass,
java.lang.Class<? extends Moveable> targetClass,
java.lang.Class<? extends SensorTargetMediator> mediatorClass)
Constructs and adds a Mediator to the MediatorFactory.
|
void |
SensorTargetMediatorFactory.addMediatorFor(java.lang.Class<? extends Sensor> sensorClass,
java.lang.Class<? extends Moveable> targetClass,
java.lang.Class<? extends SensorTargetMediator> mediatorClass)
Constructs and adds a Mediator to this MediatorFactory.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestSensorTargetReferee.TestMediator |