Class RandomlyAbsentPerson


  • public class RandomlyAbsentPerson
    extends WorkingPerson
    This is the instance of the person type that works in shifts that may vary form week to week or from month to month. The consequence is that he has little time for leisure activities.
    Version:
    1.5, Date: 2.25.12
    Author:
    Antonios Chrysopoulos
    • Constructor Detail

      • RandomlyAbsentPerson

        public RandomlyAbsentPerson()
    • Method Detail

      • initialize

        public void initialize​(String AgentName,
                               Properties conf,
                               Vector<Integer> publicVacationVector,
                               int seed)
        Description copied from class: Person
        This is the initialization function. It uses the variable values for the configuration file to create the person as it should for this type.
        Overrides:
        initialize in class Person
      • refresh

        public void refresh​(Properties conf)
        Description copied from class: Person
        At the end of each week the person models refresh their schedule. This way we have a realistic and dynamic model, changing working hours, leisure activities and so on.
        Overrides:
        refresh in class Person