public class RemoteFlowIterationListener extends java.lang.Object implements IterationListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INPUT |
static java.lang.String |
LOCALHOST |
Modifier | Constructor and Description |
---|---|
protected |
RemoteFlowIterationListener()
Creates IterationListener and keeps it detached from any UiServer instances
|
|
RemoteFlowIterationListener(UiConnectionInfo connectionInfo,
int frequency) |
Modifier and Type | Method and Description |
---|---|
protected ModelInfo |
buildModelInfo(Model model) |
protected void |
buildModelState(Model model) |
protected java.util.List<LayerInfo> |
flattenToY(ModelInfo model,
GraphVertex[] vertices,
java.util.List<java.lang.String> currentInput,
int currentY)
This method returns all Layers connected to the currentInput
|
void |
invoke()
Change invoke to true
|
boolean |
invoked()
Get if listener invoked
|
void |
iterationDone(Model model,
int iteration)
Event listener for each iteration
|
protected java.lang.String |
parseTime(long milliseconds) |
public static final java.lang.String LOCALHOST
public static final java.lang.String INPUT
protected RemoteFlowIterationListener()
public RemoteFlowIterationListener(@NonNull UiConnectionInfo connectionInfo, int frequency)
public boolean invoked()
invoked
in interface IterationListener
public void invoke()
invoke
in interface IterationListener
public void iterationDone(Model model, int iteration)
iterationDone
in interface IterationListener
model
- the model iteratingiteration
- the iterationprotected java.util.List<LayerInfo> flattenToY(ModelInfo model, GraphVertex[] vertices, java.util.List<java.lang.String> currentInput, int currentY)
vertices
- currentInput
- currentY
- protected void buildModelState(Model model)
protected java.lang.String parseTime(long milliseconds)