com.lsd.core.domain.Participant.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lsd-core Show documentation
Show all versions of lsd-core Show documentation
A library used to generate living sequence diagrams
The newest version!
package com.lsd.core.domain
data class Participant
@JvmOverloads constructor(
var type: ParticipantType = ParticipantType.PARTICIPANT,
val componentName: ComponentName,
val alias: String? = null,
val colour: String? = null
)
enum class ParticipantType {
ACTOR,
BOUNDARY,
COLLECTIONS,
CONTROL,
DATABASE,
ENTITY,
PARTICIPANT,
QUEUE;
@JvmOverloads fun called(name: String, alias: String? = null, colour: String? = null) =
Participant(componentName = ComponentName(name), type = this, alias = alias, colour = colour)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy