Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TProg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Santiago Martin Vaiga Cousillas
TProg
Commits
df65763a
Commit
df65763a
authored
2 years ago
by
Tobias Iroa Otero
Browse files
Options
Downloads
Patches
Plain Diff
act
parent
866981b4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Manejadores/ManejadorActividad.java
+8
-3
8 additions, 3 deletions
src/Manejadores/ManejadorActividad.java
src/logica/Actividad.java
+3
-0
3 additions, 0 deletions
src/logica/Actividad.java
src/logica/DataActividad.java
+52
-1
52 additions, 1 deletion
src/logica/DataActividad.java
with
63 additions
and
4 deletions
src/Manejadores/ManejadorActividad.java
+
8
−
3
View file @
df65763a
package
Manejadores
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.Map.Entry
;
import
java.util.Set
;
import
logica.Actividad
;
...
...
@@ -27,8 +28,12 @@ public class ManejadorActividad {
//Operaciones
public
Set
<
DataActividad
>
getDAct
()
{
Set
<
DataActividad
>
resultado
;
Set
<
DataActividad
>
resultado
=
null
;
Set
<
Entry
<
String
,
Actividad
>>
aux
=
colAct
.
entrySet
();
Iterator
<
Entry
<
String
,
Actividad
>>
it
=
aux
.
iterator
();
while
(
it
.
hasNext
()){
resultado
.
add
(
it
.
next
().
getValue
().
getDataAT
());
}
return
resultado
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/logica/Actividad.java
+
3
−
0
View file @
df65763a
...
...
@@ -41,4 +41,7 @@ public class Actividad {
return
this
.
duracion
;
}
public
DataActividad
getDataAT
()
{
return
new
DataActividad
(
this
.
nombre
,
this
.
descripcion
,
this
.
fechaAlta
,
this
.
ciudad
,
this
.
costo
,
this
.
duracion
);
}
}
This diff is collapsed.
Click to expand it.
src/logica/DataActividad.java
+
52
−
1
View file @
df65763a
package
logica
;
import
java.util.Date
;
public
class
DataActividad
{
public
DataActividad
()
{}
public
DataActividad
()
{
}
public
DataActividad
(
String
n
,
String
d
,
Date
f
,
String
c
,
int
cos
,
int
dur
)
{
this
.
nombre
=
n
;
this
.
descripcion
=
d
;
this
.
fechaAlta
=
f
;
this
.
ciudad
=
c
;
this
.
costo
=
cos
;
this
.
duracion
=
dur
;
}
private
String
nombre
;
private
String
descripcion
;
private
Date
fechaAlta
;
private
String
ciudad
;
private
int
costo
;
private
int
duracion
;
//Getters y Setters
public
String
getNombre
()
{
return
this
.
nombre
;
}
public
String
getDescripcion
()
{
return
this
.
descripcion
;
}
public
Date
getFechaAlta
()
{
return
this
.
fechaAlta
;
}
public
String
getCiudad
()
{
return
this
.
ciudad
;
}
public
int
getCosto
()
{
return
this
.
costo
;
}
public
int
getDuracion
()
{
return
this
.
duracion
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment