Aimsun Next Scripting  22
Public Member Functions | List of all members
GKObjectKernelAction Class Reference
Inheritance diagram for GKObjectKernelAction:
GKKernelAction

Public Member Functions

 GKObjectKernelAction ()
 
 ~GKObjectKernelAction ()
 
bool canExecute (QVector< GKObject * > target, QString id) const
 
bool execute (QVector< GKObject * > target, QString id, QString taskId)
 
QVector< GKKernelActionEntrygetActions (GKObject *target=nullptr) const
 
- Public Member Functions inherited from GKKernelAction
 GKKernelAction ()
 
virtual ~GKKernelAction ()
 
virtual QVector< GKKernelActionEntrygetActions (GKObject *target=nullptr) const =0
 
virtual bool canExecute (QVector< GKObject * > target, QString id) const =0
 
virtual bool execute (QVector< GKObject * > target, QString id, QString taskId)=0
 
virtual QString getTaskId () const
 

Constructor & Destructor Documentation

◆ GKObjectKernelAction()

GKObjectKernelAction::GKObjectKernelAction ( )

◆ ~GKObjectKernelAction()

GKObjectKernelAction::~GKObjectKernelAction ( )

Member Function Documentation

◆ canExecute()

bool GKObjectKernelAction::canExecute ( QVector< GKObject * >  target,
QString  id 
) const
virtual

Tests if an action can be executed (the selection is valid, the action exists, the resources are available...)

Implements GKKernelAction.

◆ execute()

bool GKObjectKernelAction::execute ( QVector< GKObject * >  target,
QString  id,
QString  taskId 
)
virtual

Executes a kernel action over a set of objects. Returns true if the action was found.

Implements GKKernelAction.

◆ getActions()

QVector< GKKernelActionEntry > GKObjectKernelAction::getActions ( GKObject target = nullptr) const
virtual

List all possible the actions. The target parameter is deprecated.

Implements GKKernelAction.

© Aimsun SLU
Aimsun ®