public class CompareMaxModelHelper
extends java.lang.Object
BEGIN DUMPING MODEL: LEFT MODEL ACTIVITY: ROOT [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: B [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: D [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: C [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: A [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: A-1 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: A-1-1 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: A-1-2 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] END DUMPING MODEL: LEFT MODEL BEGIN DUMPING MODEL: RIGHT MODEL ACTIVITY: ROOT [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 10:00:00 AM] ACTIVITY: B [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: D [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: C [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 10:00:00 AM] ACTIVITY: E [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: E-1 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: E-1-1 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] ACTIVITY: E-1-2 [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] END DUMPING MODEL: RIGHT MODEL Now show how the 2 models are processed ================================= COMMON: ROOT; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 10:00:00 AM] BEGIN CHILDREN LEFT ONLY: A; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] LEFT ONLY: A-1; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] LEFT ONLY: A-1-1; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] LEFT ONLY: A-1-2; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] COMMON: B; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] COMMON MODIFIED: C; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 10:00:00 AM] BEGIN CHILDREN LEFT MODIFIED: C; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] RIGHT MODIFIED: C; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 10:00:00 AM] END CHILDREN COMMON: D; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] RIGHT ONLY: E; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] RIGHT ONLY: E-1; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] RIGHT ONLY: E-1-1; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] RIGHT ONLY: E-1-2; [Jan 16, 2016 7:00:00 AM - Jan 16, 2016 9:00:00 AM] END CHILDREN
Modifier and Type | Class and Description |
---|---|
static interface |
CompareMaxModelHelper.ModelHelper
Model Helper is used to do some node comparisons in the model
|
static interface |
CompareMaxModelHelper.NodeEmitter
Node handler interface for compared models
|
Constructor and Description |
---|
CompareMaxModelHelper(IMXGanttModel leftModelFuture,
IMXGanttModel rightModelFuture,
CompareMaxModelHelper.ModelHelper helper,
MXSession session)
Creates a Helper using 2 future models (left and right conceptually).
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IMXActivity> |
getMissingLeftTasks() |
java.util.List<IMXActivity> |
getMissingRightTasks() |
int |
getTotalDifferencesCount() |
void |
loadMissingNodes()
Loads missing nodes in both sides.
|
void |
processMismatchModels()
Processes the 2 gantt models and will emit node events to the node emitter.
|
void |
processModels(int pageNumber)
Processes the 2 gantt models and will emit node events to the node emitter.
|
void |
setNodeEmitter(CompareMaxModelHelper.NodeEmitter nodeEmitter) |
public CompareMaxModelHelper(IMXGanttModel leftModelFuture, IMXGanttModel rightModelFuture, CompareMaxModelHelper.ModelHelper helper, MXSession session)
leftModelFuture
- rightModelFuture
- nodeEmitter
- public void loadMissingNodes() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void processModels(int pageNumber)
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public void processMismatchModels()
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.io.IOException
public void setNodeEmitter(CompareMaxModelHelper.NodeEmitter nodeEmitter)
public int getTotalDifferencesCount()
public java.util.List<IMXActivity> getMissingLeftTasks()
public java.util.List<IMXActivity> getMissingRightTasks()