Skip to content

Commit

Permalink
Exp3
Browse files Browse the repository at this point in the history
  • Loading branch information
spierr committed Nov 22, 2015
1 parent 3d2afc1 commit d9dbb4a
Show file tree
Hide file tree
Showing 175 changed files with 8,604 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Esta es la aplicacion para los experimentos de arquisoft de Royal Solutions 2015-2
=================================

This file will be packaged with your application, when using `activator dist`.
18 changes: 18 additions & 0 deletions mobibuses.backend/nb-configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>gfv3ee6</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
</properties>
</project-shared-configuration>
86 changes: 86 additions & 0 deletions mobibuses.backend/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<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>co.edu.uniandes.csw.mobibuses</groupId>
<artifactId>mobibuses.backend</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>ejb</packaging>

<name>mobibuses.backend</name>

<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
<version>1.13</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>10.10.2.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.3</version>
<configuration>
<ejbVersion>3.1</ejbVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
package co.edu.uniandes.csw.mobibuses.dto;
import java.util.ArrayList;
import java.util.List;

public class EstacionVcub {

private long id;
private List<Vcub> vcubsEstacion;
private double longitudEstacion;
private double latitudEstacion;
private int prestados;

public EstacionVcub(long id, double longitudEstacion, double latitudEstacion) {
this.id = id;
this.longitudEstacion = longitudEstacion;
this.latitudEstacion = latitudEstacion;
vcubsEstacion = new ArrayList<Vcub>();
prestados = 0;
}

/**
* da el id de la estacion vcub
* @return el id de la estacion
*/

public long getId() {
return id;
}


/**
* cambia el id de la estcion
* @param id nuevo id
*/

public void setId(long id) {
this.id = id;
}

/**
* da los vcubes de una estacion
* @return lista de los vcubes de una estacion
*/

public List<Vcub> getVcubsEstacion() {
return vcubsEstacion;
}

/**
* asigna un vcub a una estacion
* @param vcubsEstacion la lista de vcubes que se quiere agregar a la estacion
*/

public void setVcubsEstacion(List<Vcub> vcubsEstacion) {
this.vcubsEstacion = vcubsEstacion;
}


/**
* da la longitud de la estacion
* @return longitud geografica de la estacion
*/

public double getLongitudEstacion() {
return longitudEstacion;
}



/**
* modifica la longitud de la estacion
* @param longitudEstacion longitud geografica nueva de la estacion
*/

public void setLongitudEstacion(double longitudEstacion) {
this.longitudEstacion = longitudEstacion;
}


/**
* da la latitud de una estacion
* @return la latitud de la estacion
*/


public double getLatitudEstacion() {
return latitudEstacion;
}



/**
* modifica la latitud de la estacion
* @param latitudEstacion nueva latitud de la estacion
*/

public void setLatitudEstacion(double latitudEstacion) {
this.latitudEstacion = latitudEstacion;
}



/**
* da los vcubes prestado de una estaicion
* @return lista de los vcubes prestados de una estacion
*/

public int getPrestados() {
return prestados;
}



/**
* modifica la cantidad de vcubes prestados
* @param prestados nuevo numero de vcubes prestados
*/

public void setPrestados(int prestados) {
this.prestados = prestados;
}

}
Loading

0 comments on commit d9dbb4a

Please sign in to comment.