Class Configuration

java.lang.Object
dev.roanh.gmark.core.Configuration

public class Configuration extends Object
A configuration contains all the information on the graphs and workloads gMark needs to generate and is typically read from a configuration OutputXML file.
See Also:
  • Field Details

    • graphs

      private List<Integer> graphs
      A list of sizes (node count) of the graphs to generate.
    • schema

      private Schema schema
      The schema of the graphs to generate and to use to generate queries.
    • workloads

      private List<Workload> workloads
      List of workloads to generate.
  • Constructor Details

    • Configuration

      public Configuration(List<Integer> sizes, Schema schema, List<Workload> workloads)
      Constructs a new gMark configuration.
      Parameters:
      sizes - The sizes (in nodes) of the graphs to generate.
      schema - The schema to use to generate the graphs and queries.
      workloads - The workloads to generate.
  • Method Details

    • getGraphSizes

      public List<Integer> getGraphSizes()
      Gets a list of the graph sizes to generate. The graph sizes returned are in the number of nodes.
      Returns:
      The graph sizes to generate.
    • getPredicates

      public List<Predicate> getPredicates()
      Gets a list of all the predicates in the graph schema for this configuration.
      Returns:
      A list of all predicates for the schema in this configuration.
    • getTypes

      public List<Type> getTypes()
      Gets a list of all the node types in the graph schema for this configuration.
      Returns:
      A list of all node types for the schema in this configuration.
    • getSchema

      public Schema getSchema()
      Gets the graph schema for this configuration.
      Returns:
      The graph schema for this configuration.
    • getWorkloads

      public List<Workload> getWorkloads()
      Gets all the workloads in this configuration.
      Returns:
      All the workloads in this configuration.
    • getWorkloadByID

      public Workload getWorkloadByID(int id)
      Gets the workload with the given ID from this configuration.
      Parameters:
      id - The ID of the workload to get.
      Returns:
      The workload with the given ID or null if it doesn't exist.