#include <DashelTarget.h>
Classes | |
struct | Node |
Public Member Functions | |
virtual void | broadcastGetDescription () |
Request descriptions from the aseba network. | |
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 | |
virtual void | blockWrite () |
Block all write operations, used by invasive plugins when they do something hacky with the underlying data stream. | |
bool | emitNodeConnectedIfDescriptionComplete (unsigned id, const Node &node) |
int | getLineFromPC (unsigned node, unsigned pc) |
int | getPCFromLine (unsigned node, unsigned line) |
void | handleDashelException (Dashel::DashelException e) |
void | receivedArrayAccessOutOfBounds (Message *message) |
void | receivedBootloaderAck (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) |
virtual void | unblockWrite () |
Unblock write operatinos, used by invasive plugins when they do something hacky with the underlying data stream. | |
Protected Attributes | |
DashelInterface | dashelInterface |
SignalingDescriptionsManager | descriptionManager |
MessagesHandlersMap | messagesHandlersMap |
NodesMap | nodes |
QQueue< UserMessage * > | userEventsQueue |
QTimer | userEventsTimer |
bool | writeBlocked |
true if write is being blocked by invasive plugins, false if write is allowed | |
Friends | |
class | InvasivePlugin |
Definition at line 127 of file DashelTarget.h.
typedef void(DashelTarget::* Aseba::DashelTarget::MessageHandler)(Message *message) [protected] |
Definition at line 143 of file DashelTarget.h.
typedef std::map<unsigned, MessageHandler> Aseba::DashelTarget::MessagesHandlersMap [protected] |
Definition at line 144 of file DashelTarget.h.
typedef std::map<unsigned, Node> Aseba::DashelTarget::NodesMap [protected] |
Definition at line 145 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 162 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] |
friend class InvasivePlugin [friend] |
Definition at line 158 of file DashelTarget.h.
DashelInterface Aseba::DashelTarget::dashelInterface [protected] |
Definition at line 147 of file DashelTarget.h.
Definition at line 152 of file DashelTarget.h.
Definition at line 149 of file DashelTarget.h.
NodesMap Aseba::DashelTarget::nodes [protected] |
Definition at line 153 of file DashelTarget.h.
QQueue<UserMessage *> Aseba::DashelTarget::userEventsQueue [protected] |
Definition at line 151 of file DashelTarget.h.
QTimer Aseba::DashelTarget::userEventsTimer [protected] |
Definition at line 154 of file DashelTarget.h.
bool Aseba::DashelTarget::writeBlocked [protected] |
true if write is being blocked by invasive plugins, false if write is allowed
Definition at line 155 of file DashelTarget.h.