Interface BigraphHashFunction<B extends Bigraph<? extends Signature<?>>>

All Known Implementing Classes:
PureBigraphHash

public interface BigraphHashFunction<B extends Bigraph<? extends Signature<?>>>
Base interface to implement hash functions for bigraphs. Note that some hash functions may not necessarily compute unique hashes. It may be a computational efficient implementation which just considers the interfaces but not the overall structure of the bigraph.
Author:
Dominik Grzelak
  • Method Summary

    Modifier and Type
    Method
    Description
    static <B extends Bigraph<? extends Signature<?>>>
    BigraphHashFunction<B>
    get(Class<B> bClass)
    Factory method to create the respective hashing function class for the given bigraph class bClass.
    long
    hash(B bigraph)
    Compute a hash for a given bigraph.
  • Method Details

    • get

      static <B extends Bigraph<? extends Signature<?>>> BigraphHashFunction<B> get(Class<B> bClass)
      Factory method to create the respective hashing function class for the given bigraph class bClass.
      Type Parameters:
      B - the bigraph class type
      Parameters:
      bClass - the class of the bigraph variant (e.g., PureBigraph).
      Returns:
      the hashing function for the bigraph class type
    • hash

      long hash(B bigraph)
      Compute a hash for a given bigraph.
      Parameters:
      bigraph - the bigraph
      Returns:
      a hash of a bigraph.