|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--neosim.implementation.NeosimClassImpl | +--neosim.implementation.EntityClassImpl
Constructor Summary | |
EntityClassImpl()
|
|
EntityClassImpl(java.lang.String name)
|
Method Summary | |
PortID |
addInPort(EventClass ec)
|
PortID |
addInPort(EventClass ec,
java.lang.String name)
Add an input port to the class. |
PortID |
addOutPort(EventClass ec)
|
PortID |
addOutPort(EventClass ec,
java.lang.String name)
Add an output port to the class. |
PortID |
getInPort(java.lang.String name)
Get an input port given a name. |
java.util.Vector |
getInPorts()
|
PortID |
getOutPort(java.lang.String name)
Get an output port given a name |
java.util.Vector |
getOutPorts()
|
void |
init(java.lang.String name,
java.util.Hashtable args)
Initialise from a bean |
void |
init(java.lang.String name,
java.lang.String args)
Deprecated. - use hashtable args instead |
void |
initModule(ScriptReader sr)
If this entity requires extra global initialisation (e.g. |
Entity |
makeEntity(Population p,
int index)
An EntityClass must provide a method to create an instance of the class |
Methods inherited from class neosim.implementation.NeosimClassImpl |
getClassID,
getName,
getPackage,
getParent,
isAssignableFrom |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public EntityClassImpl(java.lang.String name)
public EntityClassImpl()
Method Detail |
public void init(java.lang.String name, java.lang.String args)
public void init(java.lang.String name, java.util.Hashtable args)
name
- the name of the entity classargs
- string name/value pairs for argumentspublic Entity makeEntity(Population p, int index)
p
- the population the entity will be part ofindex
- the index in the populationpublic PortID addOutPort(EventClass ec)
public PortID addOutPort(EventClass ec, java.lang.String name)
ec
- the class of events the port generatesname
- the name of the port (optional)public PortID addInPort(EventClass ec)
public PortID addInPort(EventClass ec, java.lang.String name)
ec
- the class of events the port acceptsname
- the name of the port (optional)public PortID getOutPort(java.lang.String name)
name
- the name of the portpublic PortID getInPort(java.lang.String name)
name
- the name of the portpublic java.util.Vector getOutPorts()
public java.util.Vector getInPorts()
public void initModule(ScriptReader sr)
sr
- the calling script reader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |