|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.usp.ime.hipo.hipomachine.HipoMemoryCell
public class HipoMemoryCell
Representa uma c?lula de mem?ria do HIPO.
Field Summary | |
---|---|
private boolean |
defined
True se o valor inicial foi definido, False caso contr? |
private HipoMemory |
memory
A mem? |
private int |
value
O valor atual da c? |
Constructor Summary | |
---|---|
HipoMemoryCell()
Cria uma nova c? |
|
HipoMemoryCell(HipoMemory memory)
Cria uma nova c? |
|
HipoMemoryCell(int value)
Cria uma nova c? |
Method Summary | |
---|---|
static boolean |
checkFormat(java.lang.String s,
int i)
Verifica se a String tem um formato v? |
int |
getIntValue()
Pega o valor da c? |
java.lang.String |
getStringValue()
Pega o valor em formato String. |
java.lang.String |
getValue()
Pega o valor da mem? |
boolean |
isDefined()
Pega se a c? |
static boolean |
isValid(java.lang.String s)
Verifica se a String tem um formato v? |
void |
setDefined(boolean defined)
Muda se a c? |
void |
setIntValue(int value)
Defini o valor da c? |
void |
setStringValue(java.lang.String s)
Define o valor da c? |
void |
setValue(java.lang.String s)
Define o valor da c? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int value
private HipoMemory memory
private boolean defined
Constructor Detail |
---|
public HipoMemoryCell(HipoMemory memory)
memory
- A mem?ria que a mesma faz parte.public HipoMemoryCell()
public HipoMemoryCell(int value)
value
- O valor inicial da c?lula de mem?riaMethod Detail |
---|
public int getIntValue()
public void setIntValue(int value)
value
- O novo valor da c?lula de mem?ria.public java.lang.String getStringValue()
getStringValue
in interface MemoryCell
public void setValue(java.lang.String s)
s
- O novo valor.public java.lang.String getValue()
public void setStringValue(java.lang.String s)
setStringValue
in interface MemoryCell
s
- O novo valor.public static boolean checkFormat(java.lang.String s, int i)
s
- A String a ser analisadai
- Mantido por compatibilidade (n?o ? usado)
public static boolean isValid(java.lang.String s)
s
- A String a ser analisada
public boolean isDefined()
isDefined
in interface MemoryCell
public void setDefined(boolean defined)
setDefined
in interface MemoryCell
defined
- O novo valor para defined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |