code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agre... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
package fields;
import game.Player;
public class Tax extends Field {
private int taxAmount;
private int taxRate;
private int tax;
public Tax(int number, String name, int taxAmount) { //Konstrukt√∏r
super(number, name);
fieldValue=4;
this.taxAmount = taxAmount;
taxRate = 10;
tax=0;
}
//Metode ti... | Java |
package fields;
import boundaryToMatador.GUI;
import game.Player;
public abstract class Ownable extends Field {
protected int price;
protected Player owner = new Player();
public int mortgageValue;
public boolean isMortgaged;
public Ownable (int number, String name, int price)
{
super (number,... | Java |
package fields;
import game.Player;
public class GoToJail extends Field {
public GoToJail(int number, String name)
{
super(number, name);
}
public void landOnField(Player s)
{
s.move(20);
}
} | Java |
package fields;
import game.Player;
public class Jail extends Field {
private int bonus;
public Jail (int number, String name, int bonus) {
super (number, name);
fieldValue=7;
this.bonus=bonus;
}
public void landOnField(Player s)
{
//s.deposit(bonus);
}
public int getBonus()
{
return bonus;
}
}... | Java |
package fields;
import game.Player;
public class Refuge extends Field {
private int bonus;
public Refuge(int number, String name, int bonus) {
super(number, name);
fieldValue=5;
this.bonus = bonus;
}
public void landOnField(Player s)
{
s.deposit(bonus);
}
public int getBonus()
{
... | Java |
package fields;
import game.Player;
public class Fleet extends Ownable {
private final int RENT_1, RENT_2, RENT_3, RENT_4;
public Fleet(int number, String name, int price) { //Konstruktør
super(number, name, price);
fieldValue=3;
RENT_1 = 25;
RENT_2 = 50;
RENT_3 = 100;
RENT_4 = 200;
}
... | Java |
package fields;
import java.util.Map;
import java.util.ArrayList;
public class Chanceliste {
private Chancekort[] chanceliste;
private int cardFromDeck;
public Chanceliste(Map<String, String> translations){
this.cardFromDeck = 0;
this.chanceliste = new Chancekort [16];
chanceliste[0... | Java |
package fields;
import game.Player;
public class Chancekort {
private int chancebonus;
private int chancenumber;
private String eventyr;
public Chancekort (int chancebonus, int chancenumber, String eventyr){
this.chancebonus = chancebonus;
this.chancenumber = chancenumber;
this.eventyr = ev... | Java |
package fields;
import game.*;
public class LaborCamp extends Ownable {
private int baseRent;
public LaborCamp(int number, String name, int price) {
super(number, name, price);
fieldValue=2;
}
public void landOnField(Player sp)
{
if (!isNotOwned() && sp!=owner)
{
setRent(sp.g... | Java |
package fields;
import game.Player;
public class Chance extends Field {
public Chance (int number, String name) {
super (number, name);
fieldValue=6;
}
public void landOnField(Player sp){
}
}
| Java |
package fields;
import game.Player;
public abstract class Field {
private String name;
protected int fieldNumber, fieldValue;
public Field(int number, String name){
/* Dette er konstrukt�oeren. Denne skal man bruge, saa man
kan lave et objekt.
*/
this.name = name;
fieldNumber=number;
... | Java |
package fields;
import game.Player;
public class OwnableChance extends Chancekort {
protected Player owner = new Player();
public OwnableChance (int chancebonus, int chancenumber, String eventyr)
{
super (chancebonus, chancenumber, eventyr);
owner=null;
}
public boolean isNotOwnable()
{
... | Java |
package fields;
import boundaryToMatador.GUI;
import game.Player;
public class Territory extends Ownable {
public int rent;
public int payPrice;
public int housesBuilt;
public boolean isHotelBuilt;
public int houseCost;
public int rent1house;
public int rent2house;
public int rent3house;
pub... | Java |
package game;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import boundaryToMatador.GUI;
import fields.*;
public class Game {
/**
* main method
*
* @param args command line arguments
*
* @throws IOException
*
* @return void
*/
... | Java |
package game;
import boundaryToMatador.GUI;
import java.awt.Color;
import java.util.Map;
public class GUIin {
private Map<String, String> translations;
public GUIin(Map<String, String> translations) {
this.translations = translations;
}
public int getNumberOfPlayers()
{
return GUI.getUse... | Java |
package game;
import fields.*;
public class Gameboard {
private Field[] feltliste; //declaring array with name feltliste
public Gameboard() // Constructor gameboard
{
feltliste = new Field[40]; //setting size of array feltliste
feltliste[0] = new Refuge(0, "Start", 200); // setting type for first place... | Java |
package game;
import java.util.HashMap;
import java.util.Map;
import boundaryToMatador.GUI;
public class GUIout {
private Map<String, String> translations;
public GUIout() { //constructor using class variable
this.translations = new HashMap<String, String>();
}
public void setTranslations(HashMap<Stri... | Java |
package game;
public class Cup {
private int dice1, dice2; //declaring 2 variables
public Cup() //Constructor cup where variables get numbers
{
dice1=1;
dice2=2;
}
public void rollDices() //method w/o return rolldices
{
dice1=(int)(Math.random()*6)+1; //generates random number * 6 tak... | Java |
package game;
import java.util.ArrayList;
import fields.*;
public class Player extends Account {
// Ting, som programmet skal huske om spilleren.
private String name;
private int field, choice;
private boolean lost, active;
public boolean inJail;
private ArrayList<Fleet> fleets;
private ArrayList<La... | Java |
package game;
public class Account {
protected int beholdning; //declaring variable beholdning
public Account() { //constructor account w/o parameters
beholdning=3000; //methods body sets variable beholdning equal to 3000
}
public void deposit(int beloeb) { // method deposit with paramete... | Java |
package soldats;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class AppletSoldats extends JApplet
{
final static int WHITE = 1;
final static int BLACK = 2;
final static int EMPTY = 0;
final private static int TAILLE = 9;
final private static int TAILLEPIONS = 40;
/**
... | Java |
package soldats;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.lang.StringBuilder;
import java.util.Random;
public class Node
{
private byte _color;
private byte _whiteSoldiersCount = 0;
private byte _blackSoldiersCount = 0;
private int _heuristique... | Java |
package soldats;
public interface IJoueur {
static final int TAILLE = 9;
static final int BLANC = 1;
static final int NOIR = 2;
public void initJoueur(int mycolour);
public int getNumJoueur();
public String choixMouvement();
public void declareLeVainqueur(int colour);
public void mouvementEnnemi... | Java |
package soldats;
import java.net.*;
import java.io.*;
import java.util.*;
/**
* Cette classe permet de charger dynamiquement une classe de joueur,
* qui doit obligatoirement implanter l'interface IJoueur. Vous lui
* donnez aussi en argument le nom de la machine distante (ou "localhost")
* sur laquelle le serveur d... | Java |
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import processing.core.PApplet;
import au.com.bytecode.opencsv.CSV;
import au.com.bytecode.opencsv.CSVReader;
import java.io.IOException;
public class CityMap {
private float accumulateNumber = 30;
private f... | Java |
public class Rectangle {
private Point3d leftTopPoint;
private float width;
private float height;
public Rectangle(Point3d leftTopPoint, float width, float height) {
this.leftTopPoint = leftTopPoint;
this.width = width;
this.height = height;
}
public float getLeftB... | Java |
public final class FloatUtil {
/**
* @param numberString
* the string to be parsed.
* @return an Float object holding the value represented by the string
* argument if the string cannot be parsed as an float; Otherwise,
* return null.
*/
static public Float valueOf(String numb... | Java |
public class Point3d {
private float x;
private float y;
private float z;
public Point3d() {
x = 0.0f;
y = 0.0f;
z = 0.0f;
}
public Point3d(float x, float y, float z) {
this.x = x;
this.y = y;
this.z = z;
}
public Point3d(P... | Java |
package my.software.basic;
public class Rectangle {
private Point3d leftTopPoint;
private float width;
private float height;
public Rectangle(Point3d leftTopPoint, float width, float height) {
this.leftTopPoint = leftTopPoint;
this.width = width;
this.height = hei... | Java |
package my.software.basic;
public class Point3d {
private float x;
private float y;
private float z;
public Point3d() {
x = 0.0f;
y = 0.0f;
z = 0.0f;
}
public Point3d(float x, float y, float z) {
this.x = x;
this.y = y;
... | Java |
package my.software;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import my.software.basic.Point3d;
import my.software.basic.Rectangle;
import my.software.utility.FloatUtil;
import processing.core.PApplet;
import au.com.byte... | Java |
package my.software.utility;
public final class FloatUtil {
/**
* @param numberString
* the string to be parsed.
* @return an Float object holding the value represented by the string
* argument if the string cannot be parsed as an float; Otherwise,
* return null.
*/
... | Java |
package my.software;
import java.io.IOException;
import my.software.basic.Point3d;
import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PGraphics;
import controlP5.Button;
import controlP5.ControlEvent;
import controlP5.ControlFont;
import controlP5.ControlP5;
import contro... | Java |
package my.software;
import processing.core.PApplet;
public class Stripe {
float x; // horizontal location of stripe
float speed; // speed of stripe
float w; // width of stripe
boolean mouse; // state of stripe (mouse is over or not?)
PApplet parent; // The parent PApplet that we will ren... | Java |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaProducto.java
*
* Created on 06/04/2011, 02:12:56 AM
*/
package vistas;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.util.LinkedList;
import java.util.Vector;
impo... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaMenu.java
*
* Created on 08/04/2011, 09:02:19 AM
*/
package vistas;
import java.awt.event.ActionListener;
import java.util.Vector;
import javax.swing.JMenuItem;
/**
*
* @author usuario
*/
public clas... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaListadoMasVendido.java
*
* Created on 08/04/2011, 10:34:15 AM
*/
package vistas;
import controladores.ControladorListadoMasVendido;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaListadoProducto.java
*
* Created on 08/04/2011, 09:47:22 AM
*/
package vistas;
import controladores.ControladorListadoIngrediente;
import controladores.ControladorListadoProducto;
import java.awt.event.A... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaListadoIngrediente.java
*
* Created on 08/04/2011, 09:20:54 AM
*/
package vistas;
import controladores.ControladorListadoIngrediente;
import java.awt.event.ActionListener;
import java.awt.event.WindowEve... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaIngrediente.java
*
* Created on 06/04/2011, 01:04:53 AM
*/
package vistas;
import controladores.ControladorIngrediente;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import jav... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaOrden.java
*
* Created on 08/04/2011, 01:01:38 AM
*/
package vistas;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.util.LinkedList;
import java.util.Vector;
import ... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* VistaCategoria.java
*
* Created on 05/04/2011, 09:32:38 PM
*/
package vistas;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import j... | Java |
/*
* To change this template, choose Tools | Templates
* AND open the template in the editor.
*/
package modelos;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Logger;
import state.Registrar... | Java |
/*
* To change this template, choose Tools | Templates
* AND open the template in the editor.
*/
package modelos;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Logger;
import state.Registrar... | Java |
/*
* To change this template, choose Tools | Templates
* AND open the template in the editor.
*/
package modelos;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Lo... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modelos;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import state.Registrable;
import state.Registr... | Java |
/*
* To change this template, choose Tools | Templates
* AND open the template in the editor.
*/
package modelos;
import java.lang.String;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.LinkedList;
import java.util.logging.Level;
im... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cariburguer;
import vistas.VistaMenu;
/**
*
* @author usuario
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
new V... | Java |
package builder;
import modelos.ModeloDB;
abstract class ModeloBuilder {
protected ModeloDB modelo;
protected String descripcion,estatus;
protected int codigo;
public abstract void crearModelo();
public abstract void buildDescripcion();
public abstract void buildEstatus();
public abstract void buil... | Java |
package builder;
import modelos.ModeloCategoria;
import modelos.ModeloDB;
import modelos.ModeloIngrediente;
public class IngredienteModeloBuilder extends ModeloBuilder{
private float stock;
@Override
public void buildDescripcion() {
modelo.setDescripcion(getDescripcion());
}
@Override
public void buildEs... | Java |
package builder;
import modelos.ModeloDB;
public class ModeloDirector {
private ModeloBuilder modeloBuilder;
public void setModeloBuilder(ModeloBuilder mb) {
modeloBuilder = mb;
}
public ModeloDB getModelo() {
return modeloBuilder.getModelo();
}
public void construirMode... | Java |
package builder;
import modelos.ModeloCategoria;
import modelos.ModeloDB;
public class CategoriaModeloBuilder extends ModeloBuilder{
@Override
public void buildDescripcion() {
modelo.setDescripcion(getDescripcion());
}
@Override
public void buildEstatus() {
modelo.setEstatus(getEstatus());
}
@Over... | Java |
package decorador;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloProducto;
public class DecoradorListarProductos extends Decorador{
private boolean asc;
private ... | Java |
package decorador;
import java.util.LinkedList;
import java.util.Vector;
import modelos.ModeloDB;
public abstract class Componente {
protected ModeloDB modelo;
protected LinkedList lista;
public abstract void listar();
public ModeloDB getModelo() {
return modelo;
}
public void setModelo(ModeloDB modelo) ... | Java |
package decorador;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloIngrediente;
public class DecoradorListarIngredientes extends Decorador{
@Override
public void ... | Java |
package decorador;
public class Decorador extends Componente{
protected Componente componete;
@Override
public void listar() {
if(componete!= null)
componete.listar();
}
public Componente getComponete() {
return componete;
}
public void setComponete(Componente componete) {
this.componete = com... | Java |
package decorador;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.LinkedList;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloProducto;
public class DecoradorListarMasUsados extends Decorador{
private boolean asc;
private b... | Java |
package state;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloCategoria;
public class RegistrarCategoria extends RegistrarGeneral{
@Override
public void registrar() {
modelo.abrirConexion();
String tira="INSE... | Java |
package state;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloProducto;
public class RegistrarProducto extends RegistrarGeneral{
@Override
public void registrar() {
modelo.abrirConexion();
String tira="INSE... | Java |
package state;
import java.sql.SQLException;
import java.sql.Statement;
import modelos.ModeloOrden;
public class RegistrarOrden extends RegistrarGeneral{
@Override
public void registrar() {
modelo.abrirConexion();
String tira="INSERT INTO Orden (codigo, cedula, total,estatus) VALUES("+modelo.getCod... | Java |
package state;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import modelos.ModeloIngrediente;
public class RegistrarIngrediente extends RegistrarGeneral{
@Override
public void registrar() {
modelo.abrirConexion();
String ti... | Java |
package state;
public interface Registrable {
void registrar();
}
| Java |
package state;
import modelos.ModeloDB;
public abstract class RegistrarGeneral implements Registrable{
protected ModeloDB modelo;
protected boolean sw;
public ModeloDB getModelo() {
return modelo;
}
public void setModelo(ModeloDB modelo) {
this.modelo = modelo;
}
public boolean getSw() {
return sw;
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import modelos.ModeloProducto;
import vistas.VistaListadoMasVendido;
/**
*
* @author usuar... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import vistas.VistaCategoria;
import vistas.VistaIngrediente;
import vistas.VistaListadoIngrediente;
import vistas.VistaLi... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.JFrame;
import javax.s... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import modelos.ModeloCategoria;
im... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.util.Vector;
import modelos.ModeloProducto;
import vistas.VistaListadoProducto;
... | Java |
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import builder.CategoriaModeloBuilder;
import builder.ModeloDirector;
import mo... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Vector;
import javax.swing.JFrame;
import javax.sw... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controladores;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.util.Vector;
import modelos.ModeloIngrediente;
import vistas.VistaListadoIngredie... | Java |
package picol.model;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.inst.ASAInstPicoL;
import picol.model.exception.FileNameException;
import picol.model.jjgener.ExprArbre;
import picol.model.jjgener.ParseException;
/**
* Classe du model
* @author Aurélien Marcel - Julien Sanderson
*/
pu... | Java |
package picol.model.asa;
import java.util.List;
/**
* Classe de gestion des paramètres pour les fonctions
* Implémentation incomplète et classe non utilisée
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAParametres {
private List<ASAVariable> parametres;
public ASAParametres() {
}
}... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion de l'instruction if
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstIf extends ASAInst {
private ASAExpr test;
private List<ASAInst> alors;
... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
/**
* Classe de gestion de l'instruction Bloc
* Implémentation incomplète et classe non utilisée
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstBloc extends ASAInst {
private List listVariable;
private L... | Java |
package picol.model.asa.inst;
/**
* Classe de gestion de l'instruction vide
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstVide extends ASAInst {
public ASAInstVide() {
}
@Override
public void executer() {
}
@Override
public boolean executerDebug() {
retur... | Java |
package picol.model.asa.inst;
import picol.model.asa.ASAVariable;
import picol.model.asa.expr.ASAExpr;
import picol.model.asa.expr.ASAExprEntier;
/**
* Classe de gestion de l'instruction declaration
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstDeclaration extends ASAInst {
private ASAVa... | Java |
package picol.model.asa.inst;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion de l'instruction-expression
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstExpr extends ASAInst {
private ASAExpr expr;
public ASAInstExpr(ASAExpr _expr) {
this.expr = _expr;
}
... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion de l'instruction for
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstFor extends ASAInst {
private ASAExpr compteur;
private ASAExpr condition;
... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.ASAVariable;
import picol.model.asa.expr.ASAExpr;
import picol.model.memory.TableSymbole;
/**
* Classe de gestion du programme PicoL
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstPicoL exte... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion de l'instruction while
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstWhile extends ASAInst {
private ASAExpr test;
private List<ASAInst> listI... | Java |
package picol.model.asa.inst;
import picol.model.asa.ASAChaine;
import picol.model.asa.expr.ASAExpr;
import picol.outputmanager.PSystem;
/**
* Cette classe modelise l'instruction print
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstPrint extends ASAInst {
private ASAExpr expr;
private... | Java |
package picol.model.asa.inst;
import java.util.ArrayList;
import java.util.List;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion de l'instruction do while
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAInstDoWhile extends ASAInst {
private ASAExpr test;
private List<ASAInst> ... | Java |
package picol.model.asa.inst;
/**
* Classe abstraite de gestion des instructions
* @author Aurélien Marcel - Julien Sanderson
*/
public abstract class ASAInst {
/**
* Méthode pour l'exécution normale du programme
*/
public abstract void executer();
/**
* Méthode pour l'exécution en mod... | Java |
package picol.model.asa;
/**
* Classe de gestion des types pour la déclaration de variables et fonctions
* Seul le type int est implémenté
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAType {
private String type;
public ASAType() {
}
public void setInt() {
type = "int";... | Java |
package picol.model.asa;
/**
* Classe de gestion des déclarations des variables et fonctions
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASADeclaration {
private ASAType type;
private String ident;
public ASADeclaration() {
}
public ASADeclaration(ASAType _type, String _ident... | Java |
package picol.model.asa;
import picol.model.asa.inst.ASAInst;
/**
* Classe de gestion des fonctions
* Implémentation incomplète et classe non utilisée
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAFonction extends ASADeclaration {
private ASADeclaration declaration;
private ASAInst inst... | Java |
package picol.model.asa;
import picol.model.asa.expr.ASAExpr;
/**
* Classe de gestion des variables
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAVariable extends ASADeclaration {
private ASADeclaration declaration;
private ASAExpr expr;
public ASAVariable() {
}
public ASAV... | Java |
package picol.model.asa;
/**
* Classe de gestion des chaine pour la méthode print
* @author Aurélien Marcel - Julien Sanderson
*/
public class ASAChaine {
private String valeur;
public ASAChaine(String _valeur) {
this.valeur = _valeur;
}
@Override
public String toString() {
//... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.