public interface HeuristicsNet
HeuristicNet
objects. These objects are
used in algorithms like the Genetic Miner etc.Modifier and Type | Method and Description |
---|---|
int |
compareTo(HeuristicsNet otherHeuristicsNet)
Compares other
HeuristicsNet object with this
HeuristicsNet object. |
HeuristicsNet |
copy()
Makes a copy (deep clone) of this
HeuristicsNet object. |
void |
disconnectArcsUsedBelowThreshold(double threshold)
Removes from this
HeuristicsNet object all the arcs that
have not been used up to a given threshold. |
void |
disconnectUnusedElements()
Disconnects in this
HeuristicsNet object the activities and
arcs that are not used during the parsing of an event log. |
boolean |
equals(java.lang.Object other)
Checks if a given
HeuristicsNet object is equal to this
HeuristicsNet object. |
int[] |
getActivitiesActualFiring()
Retrieves the variable that keeps track of how often activities have been
executed (or fired) during the parsing of a log.
|
int[] |
getActivitiesActualFiring(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap,
int newSize) |
ActivitiesMappingStructures |
getActivitiesMappingStructures()
Retrieves the current
ActivitiesMappingStructures that is
used by this HeuristicsNet object. |
HNSubSet |
getAllElementsInputSet(int index)
Retrieves a set containing all the input activities of a given activity.
|
HNSubSet |
getAllElementsOutputSet(int index)
Retrieves a set containing all the output activities of a given activity.
|
cern.colt.matrix.DoubleMatrix2D |
getArcUsage()
Retrieves the variable that keeps track of how often arcs have been used
during the parsing of a log.
|
cern.colt.matrix.DoubleMatrix2D |
getArcUsage(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap,
int newSize) |
HNSubSet |
getEndActivities()
Retrieves the current set of end activities for this
HeuristicsNet object. |
HNSubSet |
getEndActivities(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap) |
double |
getFitness()
Retrieves the current fitness of this
HeuristicsNet object. |
HNSet |
getInputSet(int index)
Retrieves the input set of a given activity in this
HeuristicsNet object. |
HNSet[] |
getInputSets()
Retrieves the array that contains all the input sets of the activities
for this
HeuristicsNet object. |
HNSet |
getInputSetsWithElement(int index,
int element)
Retrieves subsets from an input set of an activity.
|
HNSet |
getOutputSet(int index)
Retrieves the output set of a given activity in this
HeuristicsNet object. |
HNSet[] |
getOutputSets()
Retrieves the array that contains all the output sets of the activities
for this
HeuristicsNet object. |
HNSet |
getOutputSetsWithElement(int index,
int element)
Retrieves subsets from an output set of an activity.
|
HNSubSet |
getStartActivities()
Retrieves the current set of start activities for this
HeuristicsNet object. |
HNSubSet |
getStartActivities(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap) |
int |
hashCode()
Computes the hashCode for this HeuristicsNet.
|
void |
increaseArcUsage(int activity,
HNSubSet usedInputActivities,
int amount)
Increases arc usage in this
HeuristicsNet object. |
void |
increaseElementActualFiring(int activity,
int amount)
Increases by the specified amount the number of times an activity has
fired.
|
void |
resetActivitiesActualFiring()
Resets the variable that keeps track of activities that are actually
fired during the parsing of a log.
|
void |
resetArcUsage()
Resets the variable that keeps track of how often arcs are actually used
during the parsing of a log by this HeuristicsNet.
In this case, all arc usages are set to 0. |
boolean |
setActivitiesActualFiring(int[] newActivitiesActualFiring)
Sets the variable that keeps track of how often activities have been
executed during the parsing of a log by this HeuristicsNet.
|
boolean |
setActivitiesMappingStructures(ActivitiesMappingStructures newActivitiesMappingStructures)
Replaces the current
ActivitiesMappingStructures that is
used by this HeuristicsNet object. |
boolean |
setArcUsage(cern.colt.matrix.DoubleMatrix2D newArcUsage)
Sets the variable that keeps track of how often arcs are actually used
during the parsing of a log by this HeuristicsNet.
|
void |
setEndActivities(HNSubSet activities)
Sets the end activities of this
HeuristicsNet object. |
void |
setFitness(double newFitnessValue)
Sets the fitness value of this
HeuristicsNet object. |
boolean |
setInputSet(int index,
HNSet sets)
Sets the input sets of a given activity in this
HeuristicsNet object. |
boolean |
setOutputSet(int index,
HNSet sets)
Sets the output sets of a given activity in this
HeuristicsNet object. |
void |
setStartActivities(HNSubSet activities)
Sets the start activities of this
HeuristicsNet object. |
int |
size()
Retrieves the number of activities in this
HeuristicsNet
object. |
java.lang.String |
toString()
Creates a string representation of this
HeuristicsNet
object. |
void resetActivitiesActualFiring()
void resetArcUsage()
int[] getActivitiesActualFiring()
cern.colt.matrix.DoubleMatrix2D getArcUsage()
boolean setActivitiesActualFiring(int[] newActivitiesActualFiring)
newActivitiesActualFiring
- array containing the new values for the activities firing.
This variable should have the same length of the current
variable used to keep track of the activities firing.true
if the variable has been successfully updated,
false
otherwise.boolean setArcUsage(cern.colt.matrix.DoubleMatrix2D newArcUsage)
newArcUsage
- matrix containing the new arc usage values for the activities.
This variable should have the same dimension that the current
matrix has.true
if the variable has been successfully updated,
false
otherwise.void increaseElementActualFiring(int activity, int amount)
activity
- activity to have the number of firing increased.amount
- value to be added to the current amount of time the activity
has fired.void increaseArcUsage(int activity, HNSubSet usedInputActivities, int amount)
HeuristicsNet
object.activity
- index of the activity to which output arcs should be
increased.usedInputActivities
- HNSubSet
with the activities to which these
output arcs connect to. In other words, set containing the
output activities.amount
- value by which each output arc usage should be increased.HNSubSet getStartActivities()
HeuristicsNet
object.HNSubSet
with the start activities.HNSubSet getEndActivities()
HeuristicsNet
object.HNSubSet
with the end activities.void setStartActivities(HNSubSet activities)
HeuristicsNet
object.activities
- HNSubSet
with start activities.void setEndActivities(HNSubSet activities)
HeuristicsNet
object.activities
- HNSubSet
with end activities.int size()
HeuristicsNet
object.void setFitness(double newFitnessValue)
HeuristicsNet
object.newFitnessValue
- double representing the new fitness value.ActivitiesMappingStructures getActivitiesMappingStructures()
ActivitiesMappingStructures
that is
used by this HeuristicsNet
object.ActivitiesMappingStructures
currently used by this
HeuristicsNet
object.boolean setActivitiesMappingStructures(ActivitiesMappingStructures newActivitiesMappingStructures)
ActivitiesMappingStructures
that is
used by this HeuristicsNet
object. Furthermore, all other
related structured of the HeuristicsNet
object are also
updated!newActivitiesMappingStructures
- true
if the variable has been successfully updated,
false
otherwise.double getFitness()
HeuristicsNet
object.boolean setInputSet(int index, HNSet sets)
HeuristicsNet
object.index
- activity index.sets
- new input set.true
if the update was successful,
false
otherwise.boolean setOutputSet(int index, HNSet sets)
HeuristicsNet
object.index
- activity index.sets
- new output set.true
if the update was successful,
false
otherwise.HNSet[] getInputSets()
HeuristicsNet
object.HNSet[] getOutputSets()
HeuristicsNet
object.HNSet getInputSet(int index)
HeuristicsNet
object.index
- activity index.HNSet getOutputSet(int index)
HeuristicsNet
object.index
- activity index.java.lang.String toString()
HeuristicsNet
object.toString
in class java.lang.Object
HeuristicsNet
object.int compareTo(HeuristicsNet otherHeuristicsNet)
HeuristicsNet
object with this
HeuristicsNet
object. The comparison is based on their
fitness values.otherHeuristicsNet
- other HeuristicsNet
object to compare with this
HeuristicsNet
object.HeuristicsNet copy()
HeuristicsNet
object.HeuristicsNet
object.boolean equals(java.lang.Object other)
HeuristicsNet
object is equal to this
HeuristicsNet
object. Two HeuristicsNet
objects
are equal when: (i) they have the same size; (ii) they contain the same
ActivitiesMappingStructures
; and (iii) their input and
output sets are the same.equals
in class java.lang.Object
other
- HeuristicsNet
object to compare with this one.true
if the two HeuristicsNet
objects
satisfy the three conditions above, false
otherwise.int hashCode()
hashCode
in class java.lang.Object
HNSubSet getAllElementsInputSet(int index)
index
- activity to which the union set should be computed.HNSubSet
with all input activities for this
activity.HNSubSet getAllElementsOutputSet(int index)
index
- activity to which the union set should be computed.HNSubSet
with all output activities for this
activity.HNSet getInputSetsWithElement(int index, int element)
index
- activity whose input set must the searched.element
- activity to be contained in the input subsets.HNSet
with the subsets that contain
element
, or null
otherwise.HNSet getOutputSetsWithElement(int index, int element)
index
- activity whose output set must the searched.element
- activity to be contained in the output subsets.HNSet
with the subsets that contain
element
, or null
otherwise.void disconnectArcsUsedBelowThreshold(double threshold)
HeuristicsNet
object all the arcs that
have not been used up to a given threshold.threshold
- double value of the threshold to be used during the arc
pruning.void disconnectUnusedElements()
HeuristicsNet
object the activities and
arcs that are not used during the parsing of an event log.
Note: This method should be used with care since, at the starting of a parsing, no elements (activities or arcs) have been used!
HNSubSet getStartActivities(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap)
HNSubSet getEndActivities(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap)
int[] getActivitiesActualFiring(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap, int newSize)
cern.colt.matrix.DoubleMatrix2D getArcUsage(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap, int newSize)