/* * Informazioni sui taxi */ public class TaxiInfo{ private String nome; //nome del taxi private boolean disponibile; //indica se il taxi e' disponibile private int posti; //numero posti private Persona autista; //informazioni sull'autista TaxiInfo(String nome, boolean disp, int posti, Persona autista){ this.nome = nome; this.disponibile = disp; this.posti = posti; this.autista = autista; } //Metodi get String getNome(){ return nome; } boolean getDisponibile(){ return disponibile; } int getPosti(){ return posti; } Persona getAutista(){ return autista; } //Metodi Set void setNome(String nome){ this.nome = nome; } void setDisponibile(boolean disponibile){ this.disponibile = disponibile; } }