public class MultilateralNetState<P> implements NetState<P>
Subset of state, containing the elements which must match for two or more obligation transactions to be candidates
for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end,
which is handled under the verify() function).
In comparison to class BilateralNetState
, this doesn't include the parties' keys, as ensuring balances match on
input and output is handled elsewhere.
Used in cases where all parties (or their proxies) are signing, such as central clearing.
class BilateralNetState
Constructor and Description |
---|
MultilateralNetState(Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two or more obligation transactions to be candidates
for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end,
which is handled under the verify() function).
In comparison to
class BilateralNetState , this doesn't include the parties' keys, as ensuring balances match on
input and output is handled elsewhere.
Used in cases where all parties (or their proxies) are signing, such as central clearing. |
Modifier and Type | Method and Description |
---|---|
Obligation.Terms<P> |
component1() |
MultilateralNetState<P> |
copy(Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two or more obligation transactions to be candidates
for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end,
which is handled under the verify() function).
In comparison to
class BilateralNetState , this doesn't include the parties' keys, as ensuring balances match on
input and output is handled elsewhere.
Used in cases where all parties (or their proxies) are signing, such as central clearing. |
boolean |
equals(java.lang.Object p) |
Obligation.Terms<P> |
getTemplate() |
int |
hashCode() |
java.lang.String |
toString() |
getTemplate
public MultilateralNetState(Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two or more obligation transactions to be candidates
for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end,
which is handled under the verify() function).
In comparison to class BilateralNetState
, this doesn't include the parties' keys, as ensuring balances match on
input and output is handled elsewhere.
Used in cases where all parties (or their proxies) are signing, such as central clearing.
class BilateralNetState
public Obligation.Terms<P> getTemplate()
public Obligation.Terms<P> component1()
public MultilateralNetState<P> copy(Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two or more obligation transactions to be candidates
for netting (this does not include the checks to enforce that everyone's amounts received are the same at the end,
which is handled under the verify() function).
In comparison to class BilateralNetState
, this doesn't include the parties' keys, as ensuring balances match on
input and output is handled elsewhere.
Used in cases where all parties (or their proxies) are signing, such as central clearing.
class BilateralNetState
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)