Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Entrega_javcalv_victorm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
javcalv
Entrega_javcalv_victorm
Commits
381f2e07
Commit
381f2e07
authored
Oct 24, 2024
by
victorm
Browse files
Options
Downloads
Patches
Plain Diff
Muelle
parent
f592b34e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/es/markse/Muelle.java
+34
-1
34 additions, 1 deletion
src/es/markse/Muelle.java
uses/es/markse/UsaMuelle.java
+0
-5
0 additions, 5 deletions
uses/es/markse/UsaMuelle.java
with
34 additions
and
6 deletions
src/es/markse/Muelle.java
+
34
−
1
View file @
381f2e07
...
...
@@ -27,12 +27,45 @@ public class Muelle {
}
public
Muelle
(
int
plazasTotalesMuelle
,
int
contenedoresMax
)
{
public
Muelle
(
int
identificador
,
GPSCoordinate
cord
,
boolean
ocupado
,
int
plazasTotalesMuelle
,
int
contenedoresMax
)
{
this
.
identificador
=
identificador
;
this
.
cord
=
cord
;
this
.
ocupado
=
ocupado
;
this
.
plazasTotalesMuelle
=
plazasTotalesMuelle
;
this
.
contenedoresMax
=
contenedoresMax
;
}
public
int
getplazasTotalesMuelle
()
{
return
this
.
plazasTotalesMuelle
;
}
public
int
getplazasVacias
()
{
return
this
.
plazasVaciasMuelle
;
}
public
int
getPlazasSemiLlenasMuelle
()
{
return
this
.
plazasSemiLlenasMuelle
;
}
public
int
getPlazasLlenasMuelle
()
{
return
this
.
plazasLlenasMuelle
;
}
public
int
plazaActual
(
int
codigoContenedor
)
{
return
0
;
}
public
int
nivelEnPlaza
(
int
codigoContenedor
)
{
return
0
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
uses/es/markse/UsaMuelle.java
+
0
−
5
View file @
381f2e07
...
...
@@ -15,11 +15,6 @@ public class UsaMuelle {
public
static
void
main
(
String
[]
args
)
{
// TODO Auto-generated method stub
Muelle
m
=
new
Muelle
(
339987
,
555555
);
int
x
=
m
.
getplazasTotalesMuelle
();
System
.
out
.
println
(
x
);
}
...
...
...
...
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
sign in
to comment