Resource.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /************************************************************************
  2. * Resource.js
  3. ************************************************************************
  4. * Copyright (c) 2021 Pedro Tonini Rosenberg Schneider.
  5. *
  6. * This file is part of Pandora.
  7. *
  8. * Pandora is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * Pandora is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with Pandora. If not, see <https://www.gnu.org/licenses/>.
  20. *************************************************************************/
  21. /**
  22. * This {@code Resource} class represents the base class all Resources inherit from.
  23. *
  24. * ! This is an empty class the serves only to be inherited from to organize the hierarchy.
  25. * ! This class should not bet used by the user.
  26. *
  27. * @author Pedro Schneider
  28. *
  29. * @class
  30. */
  31. class Resource
  32. {
  33. /**
  34. * Creates an empty Resource.
  35. *
  36. * @constructor
  37. */
  38. constructor(name = "")
  39. {
  40. this.name = name;
  41. }
  42. }