Package jline.api.sn

Class SnJoinQuorum

java.lang.Object
jline.api.sn.SnJoinQuorum

public final class SnJoinQuorum extends Object
Number of sibling tasks a Join node waits for in a given class.

Port of matlab/src/api/fj/sn_join_quorum.m.

  • Method Details

    • snJoinQuorum

      public static int snJoinQuorum(NetworkStruct sn, Node joinNode, JobClass jobClass, int nbranches)
      A standard join, an absent declaration, a non-positive quorum and a quorum that is not smaller than the sibling count all return nbranches, i.e. the ordinary AND-join: those are the four ways a join fires only when every sibling has arrived.

      The count is the one the simulation engines apply (SolverLDES fixes it at FORK time and discards the stragglers when they reach the join), so an analytical solver reading it here charges the same synchronisation event.

      Parameters:
      sn - the network structure
      joinNode - the Join node
      jobClass - the class the siblings are matched in
      nbranches - the number of siblings the fork emits
      Returns:
      the number of siblings the join waits for