com.r3corda.client.model

Package com.r3corda.client.model

Types

ContractStateModel class ContractStateModel

This model exposes the list of owned contract states.

ExchangeRate interface ExchangeRate
ExchangeRateModel class ExchangeRateModel

This model provides an exchange rate from arbitrary currency to arbitrary currency. TODO hook up an actual oracle

GatheredTransactionData interface GatheredTransactionData
GatheredTransactionDataModel class GatheredTransactionDataModel

This model provides an observable list of states relating to the creation of a transaction not yet on ledger.

GatheredTransactionDataWritable data class GatheredTransactionDataWritable : GatheredTransactionData
Models object Models
NodeMonitorModel class NodeMonitorModel

This model exposes raw event streams to and from the NodeMonitorService through a NodeMonitorClient

ProtocolStatus data class ProtocolStatus
StateMachineStatus sealed class StateMachineStatus
StatesModification sealed class StatesModification<out T : ContractState>
TrackedDelegate sealed class TrackedDelegate<M : Any>
TransactionCreateStatus sealed class TransactionCreateStatus

Functions

eventSink fun <M : Any, T> eventSink(sinkProperty: (M) -> <ERROR CLASS><T>): <ERROR CLASS>
eventStream fun <M : Any, T> eventStream(streamProperty: (M) -> <ERROR CLASS><T>): <ERROR CLASS>
exchangeAmount fun ExchangeRate.exchangeAmount(amount: Amount<Currency>, to: Currency): Amount<Currency>
exchangeDouble fun ExchangeRate.exchangeDouble(amount: Amount<Currency>, to: Currency): Double
objectProperty fun <M : Any, T> objectProperty(objectProperty: (M) -> ObjectProperty<T>): ObjectPropertyDelegate<M, T>
observable fun <M : Any, T> observable(observableProperty: (M) -> <ERROR CLASS><T>): <ERROR CLASS>

This file defines a global Models store and delegates to inject event streams/sinks. Note that all streams here are global.

observableList fun <M : Any, T> observableList(observableListProperty: (M) -> ObservableList<T>): ObservableListDelegate<M, T>
observableListReadOnly fun <M : Any, T> observableListReadOnly(observableListProperty: (M) -> ObservableList<out T>): ObservableListReadOnlyDelegate<M, T>
observableValue fun <M : Any, T> observableValue(observableValueProperty: (M) -> ObservableValue<T>): ObservableValueDelegate<M, T>
observer fun <M : Any, T> observer(observerProperty: (M) -> <ERROR CLASS><T>): <ERROR CLASS>
writableValue fun <M : Any, T> writableValue(writableValueProperty: (M) -> WritableValue<T>): WritableValueDelegate<M, T>