|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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()
|
java.lang.String |
getName()
Returns the name of this class |
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 - with a hashtable of arguments |
void |
init(java.lang.String name,
java.lang.String args)
Deprecated. |
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 interface neosim.iface.NeosimClass |
getClassID,
getPackage,
getParent |
Method Detail |
public Entity makeEntity(Population p, int index)
p
- the population the entity will be part ofindex
- the index in the populationpublic java.lang.String getName()
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 PortID addOutPort(EventClass ec, java.lang.String name)
ec
- the class of events the port generatesname
- the name of the port (optional)public PortID addOutPort(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 addInPort(EventClass ec)
public java.util.Vector getOutPorts()
public java.util.Vector getInPorts()
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 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 |