text
stringlengths
3
1.18M
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Registro.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 201110200...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Autenticacion.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 2011...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Bus.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Anderson ...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Horario.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 2011102005...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Persona.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Ander...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Transporte.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * An...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Ruta.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Anderson...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Conectar.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Ande...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Mantenimiento.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 *...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Parada.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Anders...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Estacion.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Ande...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Conductor.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * And...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Asistente.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * And...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * AccesoaDatos.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Ciudad.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Anders...
/* * ------------------------------------------ * Universidad Distrital Francisco Jose de Caldas * Facultad de Ingenieria * Proyecto curricular de Ingenieria de Sistemas * * Sucursal.java * * Proyecto de primer corte de Programacion Avanzada * Presentado por: * Juan Pablo Moreno Rico - 20111020059 * Ande...
package interfaz; import javax.swing.JDialog; import javax.swing.JFrame; import nucleo.Bus; import nucleo.Conectar; public class DialogoBus extends JFrame { //JDialog private PanelBus panelBus; public DialogoBus() { setTitle("Agregar Bus"); panelBus = new PanelBus(this); add(pane...
package interfaz; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package firstactivity; /** * * @author Students Account */ public class FirstActivity { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code...
class MyArrayList{ private int[] MyArray; private int size; public MyArrayList(int value, int seed, int inc){ MyArray=new int [value]; size=value; for (int i = 0; i < size; i++) { MyArray[i]=seed; seed += inc; } } public void PrintElement(){ for (int i=0; i<size; i++){ System.out...
package javaapp1; class MyArrayList{ private int[] MyArray; private int size; public MyArrayList(int value, int seed, int inc){ MyArray = new int[value]; size = value; for (int i = 0; i < size; i++) { MyArray[i] = seed; seed += inc; } } ...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; import edu.wpi.first.wpilibj.templates.commands.ArmExtend; import edu.wpi.first.wpilibj.templates.commands.ArmStow; import edu.wpi.fir...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class DriveWithJoy extends CommandBase { double lt_throt_mod; public DriveWithJoy() { // Use requires() here to...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ArmStop extends CommandBase { public ArmStop() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorLiftandLatch extends CommandBase { public ConveyorLiftandLatch() { // Use requires() here to declare ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; //import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.command.CommandGroup; public class AutoShoot extends CommandGroup { //DriverStation ds = ...
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; //import edu.wpi.first.wpilibj.templates.subsystems.velocity_PIDController; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ArmStow extends CommandBase { public ArmStow() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorLift extends CommandBase { public ConveyorLift() { // Use requires() here to declare subsystem depend...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class FlywheelPIDsetspeed extends CommandBase { private double targetRPM; public FlywheelP...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.networktables.NetworkTable; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class FlywheelPIDuserset extends CommandBas...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class DriveToBalance extends CommandBase { //boolean gyroInit = true; public DriveToBalance() { // Use requires...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class FlywheelManual extends CommandBase { double rt_throt_mod; public FlywheelManual() { // Use requires() he...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.Timer; /** * * @author Wendy Chan */ public class ConveyorLiftAuto extends CommandBase { private Timer autotime = new Timer(); ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ArmExtend extends CommandBase { public ArmExtend() { // Use requires() here to declare subsystem dependencies...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorStop extends CommandBase { public ConveyorStop() { // Use requires() here to declare subsystem depend...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.parsing.IUtility; import edu.wpi.first.wpilibj.util.BoundaryException; import java.util.TimerTask; import edu.wpi.first.wpilibj.*; /** ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; //import edu.wpi.first.wpilibj.PIDController; import edu.wpi.first.wpilibj.templates.subsystems.velocity_PIDController; import edu.wpi.first.wpilibj.PIDOutput; import...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Counter; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; //import edu.wpi.first.wpilibj.Timer; import e...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.DigitalInput; //import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; imp...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.smartdashboard.*; //import edu.wpi.first.wpilibj.PIDController; import edu.wpi.first.wpilibj.templates.subsystems.velocity_PIDController; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.command.Subsystem; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.templates.RobotMap; import edu.wpi.first.wpilibj....
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; import edu.wpi.first.wpilibj.templates.commands.ConveyorLift; import edu.wpi.first.wpilibj.templates.commands.ConveyorLower; import ed...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorControl extends CommandBase { public ConveyorControl() { // Use requires() here to declare subsystem ...
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates.subsystems.CameraSystem; import edu.wpi.first.wpilibj.templates.subsystems....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class FindTarget extends CommandBase { public FindTarget() { // Use requires() here to declare subsystem dependenci...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class BridgeLower extends CommandBase { public BridgeLower() { // Use requires() here to declare subsystem dependen...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorLift extends CommandBase { public ConveyorLift() { // Use requires() here to declare subsystem depend...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class DriveWithJoystick extends CommandBase { public DriveWithJoystick() { // Use requires() here to declare subsyst...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class BridgeRaise extends CommandBase { public BridgeRaise() { // Use requires() here to declare subsystem dependen...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class HatchOpen extends CommandBase { public HatchOpen() { // Use requires() here to declare subsystem dependencies...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class HatchStop extends CommandBase { public HatchStop() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class HatchClose extends CommandBase { public HatchClose() { // Use requires() here to declare subsystem dependenci...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class DriveToBalance extends CommandBase { //boolean gyroInit = true; //double setpoint; public DriveToBalance() { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ShootBalls extends CommandBase { public ShootBalls() { // Use requires() here to declare subsystem dependenci...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorLower extends CommandBase { public ConveyorLower() { // Use requires() here to declare subsystem depe...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ConveyorStop extends CommandBase { public ConveyorStop() { // Use requires() here to declare subsystem depend...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.templat...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.image.BinaryImage; import edu.wpi.first.wp...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.templates.RobotMap; import edu.wpi.first.wpilibj....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.templat...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.ADXL345_I2C; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.RobotDrive; import edu....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.Timer; impor...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; import edu.wpi.first.wpilibj.templates.commands.ArmExtend; import edu.wpi.first.wpilibj.templates.commands.ArmStow; import edu.wpi.fir...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Team 3502 */ public class DriveWithJoy extends CommandBase { double lt_throt_mod; public DriveWithJoy() { // Use requires() here to ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * * @author Team 3502 */ public class DriveToTarget extends Comma...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Wendy Chan */ public class ArmStop extends CommandBase { public ArmStop() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; //import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.command.CommandGroup; public class AutoShoot extends CommandGroup { //DriverStation ds = ...
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates.subsystems.BridgeArm; import edu.wpi.first.wpilibj.templates.subsystems.Con...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Team 3502 */ public class ArmStow extends CommandBase { public ArmStow() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class FlywheelPIDsetspeed extends CommandBase { private double targetRPM; public FlywheelP...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.networktables.NetworkTable; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class FlywheelPIDuserset extends CommandBas...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Team 3502 */ public class FlywheelManual extends CommandBase { double rt_throt_mod; public FlywheelManual() { // Use requires() her...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; public class ConveyorLiftGateOpen extends CommandBase { public ConveyorLiftGateOpen() { // Use requires() here to declare subsystem dependencies // ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.Timer; /** * * @author Team 3502 */ public class ConveyorLiftAuto extends CommandBase { private Timer autotime = new Timer(); ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Team 3502 */ public class ArmExtend extends CommandBase { public ArmExtend() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Team 3502 */ public class ConveyorLiftGateLatched extends CommandBase { public ConveyorLiftGateLatched() { // Use requires() here to dec...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * * @author Team 3502 */ public class DriveToTargetPID extends CommandBase { //private double t...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * * @author Team 3502 */ public class DriveToTargetTestPics extends CommandBase { private double...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.parsing.IUtility; import edu.wpi.first.wpilibj.util.BoundaryException; import java.util.TimerTask; import edu.wpi.first.wpilibj.*; /** ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.ADXL345_I2C; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.RobotDrive; import edu....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; //import edu.wpi.first.wpilibj.PIDController; import edu.wpi.first.wpilibj.templates.subsystems.velocity_PIDController; import edu.wpi.first.wpilibj.PIDOutput; import...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Counter; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; //import edu.wpi.first.wpilibj.Timer; import e...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.DigitalInput; //import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; imp...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.smartdashboard.*; //import edu.wpi.first.wpilibj.PIDController; import edu.wpi.first.wpilibj.templates.subsystems.velocity_PIDController; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.command.Subsystem; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.templates.RobotMap; import edu.wpi.first.wpilibj....
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory...
package accionesPosteriores; import tadp.tp.domain.Fecha; import tadp.tp.domain.Reunion; public class AvisarAlCatering implements AccionPosterior { @Override public void ejecutar(Reunion reunion) { if(reunion.requiereCatering()) { reunion.enviarMail(); } } }
package accionesPosteriores; import tadp.tp.domain.Persona; import tadp.tp.domain.Reunion; public interface AccionDeUsuario { void ejecutar(Persona persona, Reunion reunion); }
package accionesPosteriores; import tadp.tp.domain.Fecha; import tadp.tp.domain.HomePersonas; import tadp.tp.domain.Persona; import tadp.tp.domain.Reunion; public class AvisarAManagers implements AccionPosterior { @Override public void ejecutar(Reunion reunion) { for (Persona persona : reunion.getPers...
package accionesPosteriores; import tadp.tp.domain.Edificio; import tadp.tp.domain.Fecha; import tadp.tp.domain.Reunion; public class AvisarAlTransporte implements AccionPosterior { @Override public void ejecutar(Reunion reunion) { if(reunion.cantidadDePersonasQueViajan() > 0) { reunion.enviarMail(...
package accionesPosteriores; import tadp.tp.domain.Persona; import tadp.tp.domain.Reunion; public class ReservarTodoElDia implements AccionDeUsuario { @Override public void ejecutar(Persona persona, Reunion reunion) { if(persona.getEdificio() != reunion.getEdificio()) { persona.getAgenda().agendarEn...
package accionesPosteriores; import tadp.tp.domain.Reunion; public interface AccionPosterior { void ejecutar(Reunion reunion); }
package accionesPosteriores; import tadp.tp.domain.Fecha; import tadp.tp.domain.Persona; import tadp.tp.domain.Reunion; public class AvisarHayCatering implements AccionDeUsuario { @Override public void ejecutar(Persona persona, Reunion reunion) { if(reunion.requiereCatering()) { reunion.enviarMail(...
package Observers; import tadp.tp.domain.Persona; import tadp.tp.domain.Reunion; public interface Observador { void realizarAccion(Reunion reunion, Persona persona); }
package Observers; import java.util.ArrayList; import java.util.List; import tadp.tp.domain.Fecha; import tadp.tp.domain.OrganizadorDeReuniones; public class ObserverBuilder { private List<Observador> observadores= new ArrayList<Observador>(); public ObserverBuilder ObservadorPocoPorcentaje(Doub...