All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lsd.core.domain.Participant.kt Maven / Gradle / Ivy

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