public class MasterSlaveClockConfigurator extends java.lang.Object implements IClockConfigurator
Constructor and Description |
---|
MasterSlaveClockConfigurator(IClockConfigurator originalConfig) |
Modifier and Type | Method and Description |
---|---|
IClock |
getClockFor(IModel model,
ACTRAgent agent)
if the model contains the masterExtension, we will wrap its clock
|
IClock |
getClockFor(IModel model,
IClock defaultClock)
if the model contains the slave extension or the master extension, wrap its
clock
|
protected IClock |
getClockForMaster(IModel model,
IClock defaultClock) |
protected IClock |
getClockForSlave(IModel model,
IClock defaultClock) |
void |
release(IModel model,
IClock clock) |
public MasterSlaveClockConfigurator(IClockConfigurator originalConfig)
public IClock getClockFor(IModel model, ACTRAgent agent)
getClockFor
in interface IClockConfigurator
IClockConfigurator.getClockFor(org.jactr.core.model.IModel,
org.jactr.core.reality.ACTRAgent)
public IClock getClockFor(IModel model, IClock defaultClock)
getClockFor
in interface IClockConfigurator
public void release(IModel model, IClock clock)
release
in interface IClockConfigurator