Record Class StartEvent
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.events.StartEvent
- Record Components:
runtime- theBabelruntime that is startingchannel- theComposedBabelChannelassigned to the receiving protocol
- All Implemented Interfaces:
BabelEvent
public record StartEvent(Babel runtime, ComposedBabelChannel channel)
extends Record
implements BabelEvent
Special
BabelEvent delivered exactly once to each protocol when the
Babel runtime starts (i.e., when Babel.init() is called).
The event carries the Babel runtime instance and the
BabelChannel assigned to the protocol, giving the protocol
everything it needs during its BabelProtocol.init(Babel, ComposedBabelChannel) callback.
-
Constructor Summary
ConstructorsConstructorDescriptionStartEvent(Babel runtime, ComposedBabelChannel channel) Creates an instance of aStartEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.runtime()Returns the value of theruntimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
runtime
-
channel
-