@Override public GraphVertex visit(ReductionKeyEdge edge) { return m_verticesByReductionKey.get(edge.getReductionKey()); }
private ReductionKeyEdgeResponseDTO transform(ReductionKeyEdge edge) { final ReductionKeyEdgeResponseDTO response = new ReductionKeyEdgeResponseDTO(); response.setId(edge.getId()); response.setOperationalStatus(edge.getOperationalStatus()); response.setReductionKey(edge.getReductionKey()); response.setLocation(ResourceLocationFactory.createBusinessServiceEdgeLocation(edge.getSource().getId(), edge.getId())); response.setReductionKeys(edge.getReductionKeys()); response.setMapFunction(transform(edge.getMapFunction())); response.setWeight(edge.getWeight()); response.setFriendlyName(edge.getFriendlyName()); return response; }
@Override public Void visit(ReductionKeyEdge edge) { m_typeSelect.setValue(EdgeType.REDUCTION_KEY); m_reductionKeyComponent.setValue(edge.getReductionKey()); m_friendlyNameField.setValue(edge.getFriendlyName()); m_reductionKeyComponent.setEnabled(false); return null; }
@Override public Void visit(ReductionKeyEdge edge) { m_typeSelect.setValue(EdgeType.REDUCTION_KEY); m_reductionKeyComponent.setValue(edge.getReductionKey()); m_friendlyNameField.setValue(edge.getFriendlyName()); m_reductionKeyComponent.setEnabled(false); return null; }
@Override public Void visit(ReductionKeyEdge edge) { String reductionKey = edge.getReductionKey(); vertexForEdge[0] = new GraphVertexImpl(REDUCE_HIGHEST_SEVERITY, edge.getReductionKey()); addVertex(vertexForEdge[0]); m_verticesByReductionKey.put(reductionKey, vertexForEdge[0]); return null; } });
@Override public VertexRef visit(final ReductionKeyEdge edge) { return new ReductionKeyVertex(edge.getReductionKey(), 0); }