uml-sp

Object-oriented simulation language UML2 SP

This project is maintained by vgurianov

Paradox of barber by Bertrand Russell

Barber paradox view on Wikipedia

Problem domain

Remind, the barber is the “one who shaves all those, and those only, who do not shave themselves.” The question is, does the barber shave himself? The queue is the sequence of village males to the barber.

A class diagram from an Analysis Model depicted in Figure 1


Figure 1: An object-oriented simulation model of a queue to the barber

Description of a computational semantics

It is example correct define type of data.

Description of an application domain semantics

The simulation model in C++ code:

baseClassOfBarberParadox.h, baseClassOfBarberParadox.cpp

References

  1. Bertrand Russell. THE PHILOSOPHY OF LOGICAL ATOMISM/ The Monist, Vol. 29, No. 3 (JULY, 1919), pp. 345-380 Published by: Oxford University Press