private static List<String> listInstanceNames(ReadGraph graph, Variable context, Resource type) throws DatabaseException {
Resource indexRoot = Variables.getIndexRoot(graph, context);
DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
- List<Resource> properties = QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
+ List<Resource> properties = Collections.emptyList();//QueryIndexUtils.searchByType(graph, indexRoot, DN.Vertex_ScaleProperty);
return properties.stream()
.map(m -> createEnumeratedValue(graph, m))
.map(EnumeratedValue::getName)
.collect(Collectors.toList());
}
- @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
- public static Object edgeThicknessPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
- DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
- return listInstanceNames(graph, context, DN.Edge_ThicknessProperty);
- }
-
@SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
public static Object arrowLengthPropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
return listInstanceNames(graph, context, DN.Edge_ArrowLengthProperty);
}
-
- @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
- public static Object nodeScalePropertyEnumerationValues(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
- DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
- return listInstanceNames(graph, context, DN.Vertex_ScaleProperty);
- }
-
- @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
- public static Object edgeThicknessPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
- Resource diagram = resolveElement(graph, context);
- DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
- return baseMappingModifier(graph, diagram, DN.Diagram_edgeThicknessProperty, DN.Edge_ThicknessProperty, context);
- }
@SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
public static Object arrowLengthPropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
return baseMappingModifier(graph, diagram, DN.Diagram_arrowLengthProperty, DN.Edge_ArrowLengthProperty, context);
}
-
- @SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
- public static Object nodeScalePropertyModifier(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {
- Resource diagram = resolveElement(graph, context);
- DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph);
- return baseMappingModifier(graph, diagram, DN.Diagram_nodeScaleProperty, DN.Vertex_ScaleProperty, context);
- }
@SCLValue(type = "ReadGraph -> Resource -> Variable -> b")
public static Function1<Resource, Double> hasDiameterValue(ReadGraph graph, Resource resource, Variable context) throws DatabaseException {