#include <DashelTarget.h>
Classes | |
struct | Node |
Public Member Functions | |
virtual void | clearBreakpoint (unsigned node, unsigned line) |
Remove the breakpoint in a node at a specific line. | |
virtual void | clearBreakpoints (unsigned node) |
Remove all breakpoints in a node. | |
DashelTarget (QVector< QTranslator * > translators, const QString &commandLineTarget) | |
virtual void | disconnect () |
virtual const TargetDescription *const | getDescription (unsigned node) const |
Return a constant description of a node. Returned value is always valid if node exists. | |
virtual QString | getLanguage () const |
Return the language that we choosen for this connection. | |
virtual void | getVariables (unsigned node, unsigned start, unsigned length) |
Get part of variables memory. | |
virtual void | next (unsigned node) |
Run bytecode on a node until next source line. | |
virtual void | pause (unsigned node) |
Interrupt (pause, go to step by step) the execution on a node. | |
virtual void | reboot (unsigned node) |
Reboot (restart the whole microcontroller, not just reset the aseba VM). | |
virtual void | reset (unsigned node) |
Reset the execution of a node, do not clear bytecode nor breakpoints. | |
virtual void | run (unsigned node) |
Run the execution on a node. | |
virtual void | sendEvent (unsigned id, const VariablesDataVector &data) |
Send an event to the aseba network. | |
virtual void | setBreakpoint (unsigned node, unsigned line) |
Set a breakpoint in a node at a specific line. | |
virtual void | setVariables (unsigned node, unsigned start, const VariablesDataVector &data) |
Set part of variables memory. | |
virtual void | stop (unsigned node) |
Stop the execution on a node. | |
virtual void | uploadBytecode (unsigned node, const BytecodeVector &bytecode) |
Upload bytecode to target. | |
virtual void | writeBytecode (unsigned node) |
Save the bytecode currently on target. | |
~DashelTarget () | |
Protected Types | |
typedef void(DashelTarget::* | MessageHandler )(Message *message) |
typedef std::map< unsigned, MessageHandler > | MessagesHandlersMap |
typedef std::map< unsigned, Node > | NodesMap |
Protected Slots | |
void | disconnectionFromDashel () |
void | messageFromDashel (Message *message) |
void | nodeDescriptionReceived (unsigned node) |
void | updateUserEvents () |
Protected Member Functions | |
bool | emitNodeConnectedIfDescriptionComplete (unsigned id, const Node &node) |
int | getLineFromPC (unsigned node, unsigned pc) |
int | getPCFromLine (unsigned node, unsigned line) |
void | receivedArrayAccessOutOfBounds (Message *message) |
void | receivedBreakpointSetResult (Message *message) |
void | receivedDescription (Message *message) |
void | receivedDisconnected (Message *message) |
void | receivedDivisionByZero (Message *message) |
void | receivedEventExecutionKilled (Message *message) |
void | receivedExecutionStateChanged (Message *message) |
void | receivedLocalEventDescription (Message *message) |
void | receivedNativeFunctionDescription (Message *message) |
void | receivedNodeSpecificError (Message *message) |
void | receivedVariables (Message *message) |
Protected Attributes | |
DashelInterface | dashelInterface |
SignalingDescriptionsManager | descriptionManager |
MessagesHandlersMap | messagesHandlersMap |
NodesMap | nodes |
QQueue< UserMessage * > | userEventsQueue |
QTimer | userEventsTimer |
Definition at line 124 of file DashelTarget.h.
typedef void(DashelTarget::* Aseba::DashelTarget::MessageHandler)(Message *message) [protected] |
Definition at line 139 of file DashelTarget.h.
typedef std::map<unsigned, MessageHandler> Aseba::DashelTarget::MessagesHandlersMap [protected] |
Definition at line 140 of file DashelTarget.h.
typedef std::map<unsigned, Node> Aseba::DashelTarget::NodesMap [protected] |
Definition at line 141 of file DashelTarget.h.
bool Aseba::DashelTarget::emitNodeConnectedIfDescriptionComplete | ( | unsigned | id, | |
const Node & | node | |||
) | [protected] |
virtual QString Aseba::DashelTarget::getLanguage | ( | ) | const [inline, virtual] |
Return the language that we choosen for this connection.
Implements Aseba::Target.
Definition at line 156 of file DashelTarget.h.
void Aseba::DashelTarget::receivedDescription | ( | Message * | message | ) | [protected] |
void Aseba::DashelTarget::receivedLocalEventDescription | ( | Message * | message | ) | [protected] |
void Aseba::DashelTarget::receivedNativeFunctionDescription | ( | Message * | message | ) | [protected] |
DashelInterface Aseba::DashelTarget::dashelInterface [protected] |
Definition at line 143 of file DashelTarget.h.
Definition at line 148 of file DashelTarget.h.
Definition at line 145 of file DashelTarget.h.
NodesMap Aseba::DashelTarget::nodes [protected] |
Definition at line 149 of file DashelTarget.h.
QQueue<UserMessage *> Aseba::DashelTarget::userEventsQueue [protected] |
Definition at line 147 of file DashelTarget.h.
QTimer Aseba::DashelTarget::userEventsTimer [protected] |
Definition at line 150 of file DashelTarget.h.