-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
267 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"documento" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>integrador.sisFacultad.app</groupId> | ||
<artifactId>sisFacultad</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<name>sisFacultad</name> | ||
<!-- FIXME change it to the project's website --> | ||
<url>http://www.example.com</url> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<maven.compiler.source>1.7</maven.compiler.source> | ||
<maven.compiler.target>1.7</maven.compiler.target> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.11</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | ||
<plugins> | ||
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> | ||
<plugin> | ||
<artifactId>maven-clean-plugin</artifactId> | ||
<version>3.1.0</version> | ||
</plugin> | ||
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> | ||
<plugin> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>3.0.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.22.1</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.0.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<version>2.5.2</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>2.8.2</version> | ||
</plugin> | ||
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> | ||
<plugin> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<version>3.7.1</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-project-info-reports-plugin</artifactId> | ||
<version>3.0.0</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package integrador.sisFacultad.app; | ||
|
||
/** | ||
* Hello world! | ||
* | ||
*/ | ||
public class App | ||
{ | ||
public static void main( String[] args ) | ||
{ | ||
System.out.println( "Hello World!" ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package integrador.sisFacultad.app; | ||
|
||
import java.util.ArrayList; | ||
|
||
import integrador.sisFacultad.app.models.*; | ||
|
||
public class Facultad { | ||
private ArrayList<Alumno> alumnado; | ||
private ArrayList<PlandeEstudio> planes; | ||
private ArrayList<Carrera> carreras; | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/integrador/sisFacultad/app/models/Alumno.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package integrador.sisFacultad.app.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class Alumno | ||
{ | ||
private int documento; | ||
private String nombre; | ||
private String apellido; | ||
private ArrayList<ArrayList<Materia>> cursadas;// --> coleccion: misma que coleccion de materias (Carrera) | ||
/* recorrer coleccion ejemplo | ||
for (int i = 0; i < aList.size(); i++) { | ||
for (int j = 0; j < aList.get(i).size(); j++) { | ||
System.out.print(aList.get(i).get(j) + " "); | ||
} | ||
System.out.println(); | ||
} | ||
*/ | ||
public Alumno(int doc,String nombre,String apellido){ | ||
this.documento=doc; | ||
this.nombre=nombre; | ||
this.apellido=apellido; | ||
|
||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
src/main/java/integrador/sisFacultad/app/models/Carrera.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package integrador.sisFacultad.app.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class Carrera { | ||
private int id; | ||
private String nombre; | ||
private PlandeEstudio plan; | ||
private int nOptativas; | ||
private ArrayList<Alumno> alumnos; | ||
private ArrayList<ArrayList<Materia>> materias; //--> coleccion: misma que coleccion de cursadas(Alumno)) | ||
|
||
public Carrera(int id,String nombre,PlandeEstudio plan, int optativas){ | ||
this.id=id; | ||
this.nombre=nombre; | ||
this.nOptativas=optativas; | ||
this.plan=plan; | ||
} | ||
|
||
public void setPlan(PlandeEstudio plan){ | ||
this.plan=plan; | ||
} | ||
public PlandeEstudio getPlan(){ | ||
return this.plan; | ||
} | ||
public int getIdPlan(){ | ||
return this.plan.getId(); | ||
} | ||
public void setId(int id){ | ||
this.id=id; | ||
} | ||
public int getId(){ | ||
return this.id; | ||
} | ||
public void setFinal(String nombre){ | ||
this.nombre=nombre; | ||
} | ||
public String getFinal(){ | ||
return this.nombre; | ||
} | ||
public void setOptativas(int optativas){ | ||
this.nOptativas=optativas; | ||
} | ||
public int getOptativas(){ | ||
return this.nOptativas; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/integrador/sisFacultad/app/models/Cursada.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package integrador.sisFacultad.app.models; | ||
|
||
public class Cursada { | ||
private Materia materia; | ||
private int notaParcial; | ||
private int notaFinal; | ||
|
||
public Cursada( int notaParcial,int notaFinal){ | ||
this.notaFinal=notaFinal; | ||
this.notaParcial=notaParcial; | ||
} | ||
public Materia getMateria(){ | ||
return this.materia; | ||
} | ||
public int getIdMateria(){ | ||
return this.materia.getId(); | ||
} | ||
public void setParcial(int notaParcial){ | ||
this.notaParcial=notaParcial; | ||
} | ||
public int getParcial(){ | ||
return this.notaParcial; | ||
} | ||
public void setFinal(int notaFinal){ | ||
this.notaFinal=notaFinal; | ||
} | ||
public int getFinal(){ | ||
return this.notaFinal; | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/integrador/sisFacultad/app/models/Materia.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package integrador.sisFacultad.app.models; | ||
|
||
public class Materia { | ||
private int id; | ||
private String nombre; | ||
private Materia correlatividades; | ||
|
||
public Materia(String nombre,int id){ | ||
this.nombre=nombre; | ||
this.id=id; | ||
} | ||
|
||
public void setId(int id){ | ||
this.id=id; | ||
} | ||
public int getId(){ | ||
return this.id; | ||
} | ||
|
||
public void setNombre(String nombre){ | ||
this.nombre=nombre; | ||
} | ||
public String getNombre(){ | ||
return this.nombre; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/integrador/sisFacultad/app/models/PlandeEstudio.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package integrador.sisFacultad.app.models; | ||
|
||
public class PlandeEstudio { | ||
private int id; | ||
public PlandeEstudio(int id){ | ||
this.id=id; | ||
} | ||
|
||
public int getId(){ | ||
return this.id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package integrador.sisFacultad.app; | ||
|
||
import static org.junit.Assert.assertTrue; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Unit test for simple App. | ||
*/ | ||
public class AppTest | ||
{ | ||
/** | ||
* Rigorous Test :-) | ||
*/ | ||
@Test | ||
public void shouldAnswerWithTrue() | ||
{ | ||
assertTrue( true ); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+464 Bytes
target/classes/integrador/sisFacultad/app/models/PlandeEstudio.class
Binary file not shown.
Binary file not shown.