public class CompareMaxResourceModelHelper
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 |
CompareMaxResourceModelHelper.ModelHelper
Model Helper is used to do some node comparisons in the model
|
static interface |
CompareMaxResourceModelHelper.NodeEmitter
Node handler interface for compared models
|
Constructor and Description |
---|
CompareMaxResourceModelHelper(IMXGanttModel leftModelFuture,
IMXGanttModel rightModelFuture,
CompareMaxResourceModelHelper.ModelHelper helper)
Creates a Helper using 2 future models (left and right conceptually).
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IMXResource> |
getMissingLeftResources() |
java.util.List<IMXResource> |
getMissingRightResources() |
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()
Processes the 2 gantt models and will emit node events to the node emitter.
|
void |
setNodeEmitter(CompareMaxResourceModelHelper.NodeEmitter nodeEmitter) |
public CompareMaxResourceModelHelper(IMXGanttModel leftModelFuture, IMXGanttModel rightModelFuture, CompareMaxResourceModelHelper.ModelHelper helper)
leftModelFuture
- rightModelFuture
- nodeEmitter
- public void loadMissingNodes() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void processModels()
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(CompareMaxResourceModelHelper.NodeEmitter nodeEmitter)
public int getTotalDifferencesCount()
public java.util.List<IMXResource> getMissingLeftResources()
public java.util.List<IMXResource> getMissingRightResources()