Package jline.api.sn
Class SnJoinQuorum
java.lang.Object
jline.api.sn.SnJoinQuorum
Number of sibling tasks a Join node waits for in a given class.
Port of matlab/src/api/fj/sn_join_quorum.m.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intsnJoinQuorum(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.
-
Method Details
-
snJoinQuorum
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 structurejoinNode- the Join nodejobClass- the class the siblings are matched innbranches- the number of siblings the fork emits- Returns:
- the number of siblings the join waits for
-