public class ChangeTracker extends java.lang.Object implements IInstrument, IParameterized
Logger
, using a custom stream label "CHANGE"Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANGE_STREAM |
static java.lang.String |
FORMAT_PARAM |
static java.lang.String |
TRACK_ACTIVE_CHUNKS |
static java.lang.String |
TRACK_INSTANTIATIONS |
static java.lang.String |
TRACK_NEW_CHUNKS |
Constructor and Description |
---|
ChangeTracker() |
Modifier and Type | Method and Description |
---|---|
protected void |
flush(IModel model,
boolean cleanUp)
generate the code for the asts and then send them to the logger on the
background thread
|
protected void |
generateAST(IModel model,
IProduction production)
generate the ast of the to-be-fire instantaition
|
protected void |
generateASTs(IModel model)
use the list of changed chunks to generate asts for them
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set.
|
void |
initialize()
perform any dependent initialization.
|
void |
install(IModel model)
Description of the Method
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
uninstall(IModel model)
Description of the Method
|
public static final java.lang.String CHANGE_STREAM
public static final java.lang.String FORMAT_PARAM
public static final java.lang.String TRACK_NEW_CHUNKS
public static final java.lang.String TRACK_ACTIVE_CHUNKS
public static final java.lang.String TRACK_INSTANTIATIONS
public void initialize()
IInstrument
initialize
in interface IInitializable
initialize
in interface IInstrument
public void install(IModel model)
IInstrument
install
in interface IInstallable
install
in interface IInstrument
model
- Description of the Parameterpublic void uninstall(IModel model)
IInstrument
uninstall
in interface IInstallable
uninstall
in interface IInstrument
model
- Description of the Parameterprotected void generateAST(IModel model, IProduction production)
model
- production
- protected void generateASTs(IModel model)
model
- protected void flush(IModel model, boolean cleanUp)
model
- cleanUp
- public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
key
- Description of the Parameterpublic java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized