|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
ClassID |
addClass(NeosimClass nc)
Add a class to the registry |
byte[] |
getByteArray(java.lang.Object o)
Convert an instance into an array of bytes (object serialization) |
NeosimClass |
getClassFromID(ClassID cid)
Return a class from an integer id |
NeosimClass |
getClassFromName(java.lang.String name)
Return a class from a name |
ClassID |
getClassIDFromName(java.lang.String name)
Return a class id from a name |
java.lang.Object |
readFromArray(byte[] a)
Read an object from an array of bytes |
ClassID |
registerClass(java.lang.String name,
java.lang.String parent,
java.lang.String pkg)
Register a class given name, parent, and package. |
Method Detail |
public NeosimClass getClassFromID(ClassID cid)
cid
- the class idpublic NeosimClass getClassFromName(java.lang.String name)
name
- the name of the classpublic ClassID getClassIDFromName(java.lang.String name)
name
- the name of the classpublic ClassID addClass(NeosimClass nc)
nc
- the class to addpublic ClassID registerClass(java.lang.String name, java.lang.String parent, java.lang.String pkg)
name
- the name of the classparent
- the name of the parentpublic byte[] getByteArray(java.lang.Object o)
o
- the object to convertpublic java.lang.Object readFromArray(byte[] a)
a
- the array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |