|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.comp.Component
|
+--drcl.comp.ComponentTemplate
This component provides skeleton codes for writing a component.
| Inner classes inherited from class drcl.comp.Component |
Component.LockPack |
| Constructor Summary | |
ComponentTemplate()
Constructor. |
|
ComponentTemplate(java.lang.String id_)
Constructor. |
|
| Method Summary | |
protected void |
_resume()
This method is invoked in a new thread context when Component.resume() is called. |
protected void |
_start()
This method is invoked in a new thread context when Component.run() is called. |
protected void |
_stop()
This method is invoked in a new thread context when Component.stop() is called. |
void |
duplicate(java.lang.Object source_)
Duplicates the content of source_, including ID, name, child components and connections among them, to this component. |
java.lang.String |
info()
Returns information regarding this component. |
protected void |
process(java.lang.Object data_,
Port inPort_)
The main callback method of a component. |
void |
reset()
Resets the component for being used anew. |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ComponentTemplate()
public ComponentTemplate(java.lang.String id_)
| Method Detail |
public void reset()
Componentreset in class Componentpublic void duplicate(java.lang.Object source_)
Componentduplicate in class Componentpublic java.lang.String info()
Componentinfo in class Component
protected void process(java.lang.Object data_,
Port inPort_)
Componentprocess in class Componentdrcl.comp.Componentdata_ - the arrival data.inPort_ - the port where the data arrives.protected void _start()
ComponentComponent.run() is called.
An ActiveComponent subclass must override this method to start this component._start in class Componentprotected void _stop()
ComponentComponent.stop() is called.
An ActiveComponent subclass must override this method to stop this component._stop in class Componentprotected void _resume()
ComponentComponent.resume() is called.
An ActiveComponent subclass must override this method to resume this component._resume in class Component
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||