Farm class

Constructors

Farm({String name = "", int id = 0, Clock clock = const Clock(), Communicator? communicator, bool autoDiscoverRoom = false})

Properties

alerts Map<String, Alert>
getter/setter pair
autoDiscoverRoom bool
final
clock ↔ Clock
getter/setter pair
communicator Communicator?
getter/setter pair
devices Map<String, Device>
getter/setter pair
events Stream<FarmEvent>
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
final
isConnected bool
no setter
isConnecting bool
no setter
isDisconnected bool
no setter
isDisconnecting bool
no setter
isReady bool
getter/setter pair
logList List<LogLine>
final
logListSize int
getter/setter pair
name String
final
rooms Map<String, Room>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect() Future<void>
disconnect() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processMessage(FarmMessage message) → void
publish(String topic, String message, {dynamic retain = false, dynamic qos = CommunicatorQos.atLeastOnce}) → void
subscribe(String topic, [dynamic qos = CommunicatorQos.atLeastOnce]) int?
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited