Skip to content

Commit

Permalink
primer commit local
Browse files Browse the repository at this point in the history
  • Loading branch information
agusdomin committed Oct 2, 2022
1 parent 08f5b50 commit 89610ef
Show file tree
Hide file tree
Showing 18 changed files with 267 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"documento"
]
}
75 changes: 75 additions & 0 deletions pom.xml
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>
13 changes: 13 additions & 0 deletions src/main/java/integrador/sisFacultad/app/App.java
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!" );
}
}
12 changes: 12 additions & 0 deletions src/main/java/integrador/sisFacultad/app/Facultad.java
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 src/main/java/integrador/sisFacultad/app/models/Alumno.java
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 src/main/java/integrador/sisFacultad/app/models/Carrera.java
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 src/main/java/integrador/sisFacultad/app/models/Cursada.java
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 src/main/java/integrador/sisFacultad/app/models/Materia.java
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 src/main/java/integrador/sisFacultad/app/models/PlandeEstudio.java
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;
}
}
20 changes: 20 additions & 0 deletions src/test/java/integrador/sisFacultad/app/AppTest.java
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 added target/classes/integrador/sisFacultad/app/App.class
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 not shown.
Binary file not shown.

0 comments on commit 89610ef

Please sign in to comment.