public class NotebookModel
extends java.lang.Object
Type | Property and Description |
---|---|
javafx.beans.property.BooleanProperty |
isComputing
Gets the value of the property computingProperty.
|
Constructor and Description |
---|
NotebookModel(org.processmining.contexts.uitopia.UIPluginContext context,
org.deckfour.xes.model.XLog log,
org.processmining.framework.plugin.ProMCanceller canceller)
The constructor which sets the initial input event log.
|
NotebookModel(org.deckfour.xes.model.XLog log)
This constructor exists so a notebookModel can be constructed without a UIPluginContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addCell(CellModel cell)
Adds a single cell to the list of cells in this model.
|
void |
addCell(int index,
CellModel cell)
Adds a single cell to the list of cells in this model.
|
void |
addCells(int index,
java.util.List<CellModel> cells)
Appends a list of cells to the list of cells in this model.
|
void |
addCells(java.util.List<CellModel> cells)
Appends a list of cells to the list of cells in this model.
|
void |
addCellsInputLogs(ComputationCellModel addedCell)
Updates input logs for all computation cells within the notebook model
This happens when a computation cell is added in order to update the
output logs of downstream cells
|
void |
cancelCompute() |
void |
compute()
Method that computes the whole notebook in a separate thread.
|
javafx.collections.ObservableList<CellModel> |
getCells()
Returns the list of all cells currently in the notebook.
|
ComputationMode |
getComputationMode()
Returns the current computation mode of the notebook.
|
YLog |
getInitialInput()
Returns the initial event log the notebook was initialized with.
|
java.util.ArrayList<YLog> |
getOutputLogsTill(int index) |
org.processmining.framework.plugin.ProMCanceller |
getPromCanceller()
Returns the ProM canceller.
|
org.processmining.contexts.uitopia.UIPluginContext |
getPromContext()
Returns the ProM context.
|
org.processmining.contexts.uitopia.hub.ProMResourceManager |
getPromResourceManager()
Returns the ProM resource manager.
|
org.processmining.contexts.uitopia.hub.ProMViewManager |
getPromViewManager()
Returns the ProM view manager.
|
java.lang.String |
getXML()
Prints an XML of the notebook generated by JAXB.
|
boolean |
isComputing() |
javafx.beans.property.BooleanProperty |
isComputingProperty()
Gets the value of the property computingProperty.
|
void |
removeCell(CellModel cell)
Removes a cell from the list of cells in this model.
|
void |
removeCell(int index)
Removes a cell from the list of cells in this model.
|
void |
removeCells(java.util.List<CellModel> cells)
Removes all cells in a list from the list of cells in this model.
|
void |
removeCellsInputLogs(ComputationCellModel removedCell)
Updates input logs for all computation cells within the notebook model
This happens when a computation cell is removed in order to update the
output logs of downstream cells
|
void |
saveAnalysisNotebook()
Saves the current notebook to the workspace.
|
void |
saveEventFilter()
Saves the current notebook to the workspace.
|
void |
setComputationMode(ComputationMode computationMode)
Sets the computation mode of the notebook to the input computation mode.
|
void |
setInitialInput(YLog log)
Set the initial event log for the notebook.
|
public javafx.beans.property.BooleanProperty isComputingProperty
public NotebookModel(org.deckfour.xes.model.XLog log)
log
- The event log to initialize the notebook with.public NotebookModel(org.processmining.contexts.uitopia.UIPluginContext context, org.deckfour.xes.model.XLog log, org.processmining.framework.plugin.ProMCanceller canceller)
context
- The context from ProM.log
- The event log to initialize the notebook with.public org.processmining.contexts.uitopia.UIPluginContext getPromContext()
public org.processmining.framework.plugin.ProMCanceller getPromCanceller()
public org.processmining.contexts.uitopia.hub.ProMViewManager getPromViewManager()
public org.processmining.contexts.uitopia.hub.ProMResourceManager getPromResourceManager()
public YLog getInitialInput()
public void setInitialInput(YLog log)
log
- The event log the notebook is initialized with.public javafx.collections.ObservableList<CellModel> getCells()
public void addCell(CellModel cell)
cell
- The cell to add to this modelpublic void addCells(java.util.List<CellModel> cells)
cells
- The list of cells to append to the cells in this model.public void removeCell(CellModel cell)
cell
- The cell to remove from this model.public void addCell(int index, CellModel cell)
index
- The position in the list which the cell should be addedcell
- The cell to add to this modelpublic void addCells(int index, java.util.List<CellModel> cells)
index
- The position in the list in which the cells should be addedcells
- The list of cells to append to the cells in this model.public void removeCell(int index)
index
- The index of the cell to be removed.public void removeCells(java.util.List<CellModel> cells)
cells
- The list containing the cells to remove from this model.public ComputationMode getComputationMode()
public void setComputationMode(ComputationMode computationMode)
computationMode
- The computation mode to set the notebook to.public void saveAnalysisNotebook()
public void saveEventFilter()
public void removeCellsInputLogs(ComputationCellModel removedCell)
removedCell
- the computation cell that was removed from the notebook modelpublic void addCellsInputLogs(ComputationCellModel addedCell)
addedCell
- the computation cell that was added to the notebook modelpublic java.util.ArrayList<YLog> getOutputLogsTill(int index)
public void compute()
public void cancelCompute()
public boolean isComputing()
public javafx.beans.property.BooleanProperty isComputingProperty()
public java.lang.String getXML() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException