|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.usp.ime.hipo.hipomachine.HipoMemory
public class HipoMemory
Representa uma memória do HIPO
| Field Summary | |
|---|---|
private MemoryCell[] |
cells
Array com as células de memória |
| Constructor Summary | |
|---|---|
HipoMemory()
Cria uma nova memória do HIPO, criando cada célula de memória. |
|
HipoMemory(int a,
int b)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
getCellSize()
Pega o tamanho de cada célula de memória |
boolean |
getDefined(int pos)
Descobre se uma determinada célula está definida |
MemoryCell |
getMemoryCell(int pos)
Retorna a célula de memória da posição requerida |
int |
getSize()
Pega o tamanho da memória (quantidade de células) |
java.lang.String |
getValue(int pos)
Acessa o valor de uma célula de memória |
void |
setValue(int pos,
java.lang.String value)
Define o valor de uma célula de memória |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private MemoryCell[] cells
| Constructor Detail |
|---|
public HipoMemory(int a,
int b)
public HipoMemory()
| Method Detail |
|---|
public MemoryCell getMemoryCell(int pos)
getMemoryCell in interface Memorypos - A posição a ser acessada
public void setValue(int pos,
java.lang.String value)
pos - A posição em que se encontra a célulavalue - O novo valorpublic boolean getDefined(int pos)
pos - A posição em que se encontra a célula
public java.lang.String getValue(int pos)
pos - A posição em que se encontra a célula
public int getSize()
public int getCellSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||