Source Code Cross Referenced for Reservation.java in  » Development » rapla » org » rapla » entities » domain » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » rapla » org.rapla.entities.domain 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*--------------------------------------------------------------------------*
02:         | Copyright (C) 2006 Gereon Fassbender, Christopher Kohlhaas               |
03:         |                                                                          |
04:         | This program is free software; you can redistribute it and/or modify     |
05:         | it under the terms of the GNU General Public License as published by the |
06:         | Free Software Foundation. A copy of the license has been included with   |
07:         | these distribution in the COPYING file, if not go to www.fsf.org .       |
08:         |                                                                          |
09:         | As a special exception, you are granted the permissions to link this     |
10:         | program with every library, which license fulfills the Open Source       |
11:         | Definition as published by the Open Source Initiative (OSI).             |
12:         *--------------------------------------------------------------------------*/
13:
14:        package org.rapla.entities.domain;
15:
16:        import org.rapla.entities.Entity;
17:        import org.rapla.entities.Named;
18:        import org.rapla.entities.Ownable;
19:        import org.rapla.entities.RaplaObject;
20:        import org.rapla.entities.RaplaType;
21:        import org.rapla.entities.Timestamp;
22:        import org.rapla.entities.dynamictype.Classifiable;
23:
24:        /** The <code>Reservation</code> interface is the central interface of
25:         *  Rapla.  Objects implementing this interface are the courses or
26:         *  events to be scheduled.  A <code>Reservation</code> consist
27:         *  of a group of appointments and a set of allocated
28:         *  resources (rooms, notebooks, ..) and persons.
29:         *  By default all resources and persons are allocated on every appointment.
30:         *  If you want to associate allocatable objects to special appointments
31:         *  use Restrictions.
32:         *
33:         *  @see Classifiable
34:         *  @see Appointment
35:         *  @see Allocatable
36:         */
37:        public interface Reservation extends Entity, RaplaObject, Classifiable,
38:                Named, Ownable, Timestamp {
39:            final RaplaType TYPE = new RaplaType(Reservation.class,
40:                    "reservation");
41:
42:            public final int MAX_RESERVATION_LENGTH = 100;
43:
44:            void addAppointment(Appointment appointment);
45:
46:            void removeAppointment(Appointment appointment);
47:
48:            /** returns all appointments that are part off the reservation.*/
49:            Appointment[] getAppointments();
50:
51:            /** Restrict an allocation to one ore more appointments.
52:             *  By default all objects of a reservation are allocated
53:             *  on every appointment. Restrictions allow to model
54:             *  relations between allocatables and appointments.
55:             *  A resource or person is restricted if its connected to
56:             *  one or more appointments instead the whole reservation.
57:             */
58:            void setRestriction(Allocatable alloc, Appointment[] appointments);
59:
60:            Appointment[] getRestriction(Allocatable alloc);
61:
62:            /** returns all appointments for an allocatable. This are either the restrictions, if there are any or all appointments
63:             * @see #getRestriction
64:             * @see #getAppointments*/
65:            Appointment[] getAppointmentsFor(Allocatable alloc);
66:
67:            /** find an appointment in the reservation that equals the specified appointment. This is usefull if you have the
68:             * persistant version of an appointment and want to discover the editable appointment in the working copy of a reservation */
69:            Appointment findAppointment(Appointment appointment);
70:
71:            void addAllocatable(Allocatable allocatable);
72:
73:            void removeAllocatable(Allocatable allocatable);
74:
75:            Allocatable[] getAllocatables();
76:
77:            Allocatable[] getRestrictedAllocatables(Appointment appointment);
78:
79:            /** returns if an the reservation has allocated the specified object. */
80:            boolean hasAllocated(Allocatable alloc);
81:
82:            /** returns if the allocatable is reserved on the specified appointment. */
83:            boolean hasAllocated(Allocatable alloc, Appointment appointment);
84:
85:            /** returns all persons that are associated with the reservation.
86:                Need not necessarily to be users of the System.
87:             */
88:            Allocatable[] getPersons();
89:
90:            /** returns all resources that are associated with the reservation. */
91:            Allocatable[] getResources();
92:
93:            public static final Reservation[] RESERVATION_ARRAY = new Reservation[0];
94:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.