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

it.unibo.alchemist.model.cognitive.impact.individual.HelpAttitudeSpec.kt Maven / Gradle / Ivy

There is a newer version: 35.0.0
Show newest version
/*
 * Copyright (C) 2010-2022, Danilo Pianini and contributors
 * listed, for each module, in the respective subproject's build.gradle.kts file.
 *
 * This file is part of Alchemist, and is distributed under the terms of the
 * GNU General Public License, with a linking exception,
 * as described in the file LICENSE in the Alchemist distribution's top directory.
 */

package it.unibo.alchemist.model.cognitive.impact.individual

import com.uchuhimo.konf.ConfigSpec

private typealias DoublePair = Pair

/**
 * A specification of the parameters regarding help attitudes to load from a config file.
 */
object HelpAttitudeSpec : ConfigSpec() {

    // CPD-OFF

    /**
     * Adult males' help attitudes.
     */
    object AdultMale : ConfigSpec() {

        /**
         * The attitude of an adult male to help a male child.
         */
        val childMale by required()

        /**
         * The attitude of an adult male to help a male adult.
         */
        val adultMale by required()

        /**
         * The attitude of an adult male to help a male elderly.
         */
        val elderlyMale by required()

        /**
         * The attitude of an adult male to help a female child.
         */
        val childFemale by required()

        /**
         * The attitude of an adult male to help an adult female.
         */
        val adultFemale by required()

        /**
         * The attitude of an adult male to help an elderly woman.
         */
        val elderlyFemale by required()
    }

    /**
     * Adult females attitudes.
     */
    object AdultFemale : ConfigSpec() {

        /**
         * The attitude of an adult female to help a male child.
         */
        val childMale by required()

        /**
         * The attitude of an adult female to help a male adult.
         */
        val adultMale by required()

        /**
         * The attitude of an adult female to help a male elderly.
         */
        val elderlyMale by required()

        /**
         * The attitude of an adult female to help a female child.
         */
        val childFemale by required()

        /**
         * The attitude of an adult female to help an adult female.
         */
        val adultFemale by required()

        /**
         * The attitude of an adult female to help an elderly woman.
         */
        val elderlyFemale by required()
    }

    /**
     * Elderly males attitudes.
     */
    object ElderlyMale : ConfigSpec() {

        /**
         * The attitude of an elderly male to help a male child.
         */
        val childMale by required()

        /**
         * The attitude of an elderly male to help a male adult.
         */
        val adultMale by required()

        /**
         * The attitude of an elderly male to help a male elderly.
         */
        val elderlyMale by required()

        /**
         * The attitude of an elderly male to help a female child.
         */
        val childFemale by required()

        /**
         * The attitude of an elderly male to help an adult female.
         */
        val adultFemale by required()

        /**
         * The attitude of an elderly male to help an elderly woman.
         */
        val elderlyFemale by required()
    }

    /**
     * Elderly females attitudes.
     */
    object ElderlyFemale : ConfigSpec() {

        /**
         * The attitude of an elderly female to help a male child.
         */
        val childMale by required()

        /**
         * The attitude of an elderly female to help a male adult.
         */
        val adultMale by required()

        /**
         * The attitude of an elderly female to help a male elderly.
         */
        val elderlyMale by required()

        /**
         * The attitude of an elderly female to help a female child.
         */
        val childFemale by required()

        /**
         * The attitude of an elderly female to help an adult female.
         */
        val adultFemale by required()

        /**
         * The attitude of an elderly female to help an elderly woman.
         */
        val elderlyFemale by required()
    }

    // CPD-ON
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy