Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alvaro Ordóñez Romero
/
DAE-aha00026-aor00039
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a35ce69
authored
Oct 05, 2023
by
Álvaro Herrera Arjonilla
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Añado clase SistemaCarPooling
parent
80eff868
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
1 deletions
src/main/java/com/carpooling/carpoolingaoraha/entidades/SistemaCarPooling.java
src/main/java/com/carpooling/carpoolingaoraha/entidades/Usuario.java
src/main/java/com/carpooling/carpoolingaoraha/entidades/SistemaCarPooling.java
0 → 100644
View file @
2a35ce69
package
com
.
carpooling
.
carpoolingaoraha
.
entidades
;
public
class
SistemaCarPooling
{
private
String
nombre
;
private
Viaje
viajes
;
private
Usuario
usuarios
;
public
String
getNombre
()
{
return
nombre
;
}
public
void
setNombre
(
String
nombre
)
{
this
.
nombre
=
nombre
;
}
public
Viaje
getViajes
()
{
return
viajes
;
}
public
void
setViajes
(
Viaje
viajes
)
{
this
.
viajes
=
viajes
;
}
public
Usuario
getUsuarios
()
{
return
usuarios
;
}
public
void
setUsuarios
(
Usuario
usuarios
)
{
this
.
usuarios
=
usuarios
;
}
}
src/main/java/com/carpooling/carpoolingaoraha/entidades/Usuario.java
View file @
2a35ce69
package
com
.
carpooling
.
carpoolingaoraha
.
entidades
;
import
java.util.Date
;
import
com.carpooling.carpoolingaoraha.entidades.*
;
enum
rol
{
CONDUCTOR
,
PASAJERO
};
...
...
@@ -15,4 +15,89 @@ public class Usuario {
private
String
claveAcceso
;
private
int
puntuacion
;
private
rol
rol
;
public
Usuario
(
String
nombre
,
String
apellidos
,
Date
FNac
,
String
DNI
,
int
telefono
,
String
email
,
String
claveAcceso
,
int
puntuacion
,
rol
rol
)
{
this
.
nombre
=
nombre
;
this
.
apellidos
=
apellidos
;
this
.
FNac
=
FNac
;
this
.
DNI
=
DNI
;
this
.
telefono
=
telefono
;
this
.
email
=
email
;
this
.
claveAcceso
=
claveAcceso
;
this
.
puntuacion
=
puntuacion
;
this
.
rol
=
rol
;
}
public
String
getNombre
()
{
return
nombre
;
}
public
void
setNombre
(
String
nombre
)
{
this
.
nombre
=
nombre
;
}
public
String
getApellidos
()
{
return
apellidos
;
}
public
void
setApellidos
(
String
apellidos
)
{
this
.
apellidos
=
apellidos
;
}
public
Date
getFNac
()
{
return
FNac
;
}
public
void
setFNac
(
Date
FNac
)
{
this
.
FNac
=
FNac
;
}
public
String
getDNI
()
{
return
DNI
;
}
public
void
setDNI
(
String
DNI
)
{
this
.
DNI
=
DNI
;
}
public
int
getTelefono
()
{
return
telefono
;
}
public
void
setTelefono
(
int
telefono
)
{
this
.
telefono
=
telefono
;
}
public
String
getEmail
()
{
return
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getClaveAcceso
()
{
return
claveAcceso
;
}
public
void
setClaveAcceso
(
String
claveAcceso
)
{
this
.
claveAcceso
=
claveAcceso
;
}
public
int
getPuntuacion
()
{
return
puntuacion
;
}
public
void
setPuntuacion
(
int
puntuacion
)
{
this
.
puntuacion
=
puntuacion
;
}
public
rol
getRol
()
{
return
rol
;
}
public
void
setRol
(
rol
rol
)
{
this
.
rol
=
rol
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment