|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectProduto
public class Produto
Constructor Summary | |
---|---|
Produto()
Construtor base |
|
Produto(Produto p)
Construtor de cópia |
|
Produto(String cod,
String nom,
int qt,
int na)
Construtor completo |
Method Summary | |
---|---|
Produto |
clone()
clone() do produto. |
boolean |
estaEmAlarme()
Verifica se o produto está em ALARME, ou seja, se tem uma quantidade inferior ao nível de alarme definido. |
int |
getAlarme()
Devolve o nivel actual de alarme |
String |
getCodigo()
Devolve o código do produto |
String |
getNome()
Devolve o Nome do produto |
int |
getQuant()
Devolve a quantidade actual em stock |
void |
saidaStock(int valor)
Regista saida de stock de uma dada quantidade deste produto. |
void |
somaQuant(int valor)
Incrementa a quantidade em stock |
String |
toString()
Devolve uma String representação do produto. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Produto()
public Produto(Produto p)
public Produto(String cod, String nom, int qt, int na)
Method Detail |
---|
public Produto clone()
clone
in class Object
public boolean estaEmAlarme()
public int getAlarme()
public String getCodigo()
public String getNome()
public int getQuant()
public void saidaStock(int valor)
public void somaQuant(int valor)
public String toString()
toString
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |