Version: 8.3.0
YACS::HMI::SubjectOptimizerLoop Class Reference

#include <guiObservers.hxx>

Inheritance diagram for YACS::HMI::SubjectOptimizerLoop:
Collaboration diagram for YACS::HMI::SubjectOptimizerLoop:

Public Member Functions

 SubjectOptimizerLoop (YACS::ENGINE::OptimizerLoop *optimizerLoop, Subject *parent)
 
virtual ~SubjectOptimizerLoop ()
 
virtual void clean (Command *command=0)
 
void localclean (Command *command=0)
 
virtual TypeOfElem getType ()
 
virtual bool setAlgorithm (const std::string &alglib, const std::string &symbol)
 
- Public Member Functions inherited from YACS::HMI::SubjectDynParaLoop
 SubjectDynParaLoop (YACS::ENGINE::DynParaLoop *dynParaLoop, Subject *parent)
 
virtual ~SubjectDynParaLoop ()
 
virtual SubjectNodeaddNode (YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string name, bool newCompoInst)
 
virtual void recursiveUpdate (GuiEvent event, int type, Subject *son)
 
virtual void completeChildrenSubjectList (SubjectNode *son)
 
virtual void removeNode (SubjectNode *child)
 
virtual SubjectNodegetChild (YACS::ENGINE::Node *node=NULL) const
 
virtual bool setNbBranches (std::string nbBranches)
 
virtual bool hasValue ()
 
virtual std::string getValue ()
 
virtual void houseKeepingAfterCutPaste (bool isCut, SubjectNode *son)
 
void localclean (Command *command=NULL)
 
- Public Member Functions inherited from YACS::HMI::SubjectComposedNode
 SubjectComposedNode (YACS::ENGINE::ComposedNode *composedNode, Subject *parent)
 
virtual ~SubjectComposedNode ()
 
virtual void loadChildren ()
 
virtual void loadLinks ()
 
SubjectNodeaddSubjectNode (YACS::ENGINE::Node *node, std::string name="", YACS::ENGINE::Catalog *catalog=0, std::string compo="", std::string type="")
 
SubjectLinkaddSubjectLink (SubjectNode *sno, SubjectDataPort *spo, SubjectNode *sni, SubjectDataPort *spi)
 
SubjectControlLinkaddSubjectControlLink (SubjectNode *sno, SubjectNode *sni)
 
virtual void removeLink (SubjectLink *link)
 
virtual void removeControlLink (SubjectControlLink *link)
 
virtual void removeExternalControlLinks ()
 
void localclean (Command *command=0)
 
- Public Member Functions inherited from YACS::HMI::SubjectNode
 SubjectNode (YACS::ENGINE::Node *node, Subject *parent)
 
virtual ~SubjectNode ()
 
virtual bool setProperties (std::map< std::string, std::string > properties)
 
virtual std::map< std::string,
std::string > 
getProperties ()
 
virtual bool reparent (Subject *parent)
 
virtual bool copy (Subject *parent)
 
virtual std::string getName ()
 
virtual bool setName (std::string name)
 
virtual YACS::ENGINE::NodegetNode ()
 
void registerUndoDestroy ()
 
SubjectControlLinkaddSubjectControlLink (SubjectControlLink *sub)
 
void removeSubjectControlLink (SubjectControlLink *sub)
 
std::list< SubjectLink * > getSubjectLinks () const
 
std::list< SubjectControlLink * > getSubjectControlLinks () const
 
std::list< SubjectInputPort * > getSubjectInputPorts () const
 
std::list< SubjectOutputPort * > getSubjectOutputPorts () const
 
std::list
< SubjectInputDataStreamPort * > 
getSubjectInputDataStreamPorts () const
 
std::list
< SubjectOutputDataStreamPort * > 
getSubjectOutputDataStreamPorts () const
 
void localclean (Command *command=0)
 
virtual void update (GuiEvent event, int type, Subject *son)
 
virtual void removeExternalLinks ()
 
virtual void saveLinks ()
 
virtual void restoreLinks ()
 
virtual bool putInComposedNode (std::string name, std::string type, bool toSaveRestoreLinks=true)
 
virtual int isValid ()
 
void setExecState (int execState)
 
- Public Member Functions inherited from YACS::HMI::Subject
 Subject (Subject *parent=0)
 
virtual ~Subject ()
 
virtual void attach (GuiObserver *obs)
 
virtual void detach (GuiObserver *obs)
 
virtual void select (bool isSelected)
 
virtual std::vector< std::string > knownProperties ()
 
virtual SubjectgetParent ()
 
virtual void setParent (Subject *son)
 
virtual bool destroy (Subject *son)
 From user action in Ihm, destroy an object. More...
 
virtual void addSubjectReference (Subject *ref)
 
void localclean (Command *command=0)
 
void registerUndoDestroy ()
 
void askRegisterUndoDestroy ()
 
bool isDestructible ()
 
virtual void setProgress (std::string newProgress)
 
virtual std::string getProgress ()
 
- Public Member Functions inherited from YACS::ENGINE::Observer
virtual void notifyObserver2 (Node *object, const std::string &event, void *something)
 
virtual ~Observer ()
 

Protected Attributes

YACS::ENGINE::OptimizerLoop_optimizerLoop
 
- Protected Attributes inherited from YACS::HMI::SubjectDynParaLoop
YACS::ENGINE::DynParaLoop_dynParaLoop
 
SubjectNode_subjectExecNode
 
SubjectNode_subjectInitNode
 
SubjectNode_subjectFinalizeNode
 
- Protected Attributes inherited from YACS::HMI::SubjectComposedNode
YACS::ENGINE::ComposedNode_composedNode
 
- Protected Attributes inherited from YACS::HMI::SubjectNode
YACS::ENGINE::Node_node
 
std::list< SubjectInputPort * > _listSubjectInputPort
 
std::list< SubjectOutputPort * > _listSubjectOutputPort
 
std::list
< SubjectInputDataStreamPort * > 
_listSubjectIDSPort
 
std::list
< SubjectOutputDataStreamPort * > 
_listSubjectODSPort
 
std::list< SubjectLink * > _listSubjectLink
 
std::list< SubjectControlLink * > _listSubjectControlLink
 
int _execState
 
std::list
< YACS::ENGINE::OutGate * > 
loutgate
 
std::list< YACS::ENGINE::InGate * > singate
 
std::vector< std::pair
< YACS::ENGINE::OutPort
*, YACS::ENGINE::InPort * > > 
dataLinks
 
std::vector< std::pair
< YACS::ENGINE::OutPort
*, YACS::ENGINE::InPort * > > 
dataflowLinks
 
- Protected Attributes inherited from YACS::HMI::Subject
std::set< GuiObserver * > _setObs
 
Subject_parent
 
bool _destructible
 
bool _askRegisterUndo
 
std::string _progress
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::HMI::SubjectComposedNode
static SubjectComposedNodegetLowestCommonAncestor (SubjectNode *snode1, SubjectNode *snode2)
 Retrieves the lowest common ancestor of 2 nodes. More...
 
- Protected Member Functions inherited from YACS::HMI::SubjectComposedNode
virtual SubjectNodecreateNode (YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string name, bool newCompoInst, int swCase=0)
 

Detailed Description

Definition at line 657 of file guiObservers.hxx.

Constructor & Destructor Documentation

SubjectOptimizerLoop::SubjectOptimizerLoop ( YACS::ENGINE::OptimizerLoop optimizerLoop,
Subject parent 
)

Definition at line 3463 of file guiObservers.cxx.

3465  : SubjectDynParaLoop(optimizerLoop, parent), _optimizerLoop(optimizerLoop)
3466 {
3467 }
SubjectOptimizerLoop::~SubjectOptimizerLoop ( )
virtual

Definition at line 3469 of file guiObservers.cxx.

References DEBTRACE, and YACS::HMI::SubjectNode::getName().

3470 {
3471  DEBTRACE("SubjectOptimizerLoop::~SubjectOptimizerLoop " << getName());
3472 }

Member Function Documentation

void SubjectOptimizerLoop::clean ( Command command = 0)
virtual

Clean process prior to delete is redefined in derived classes: a local clean treatment relative to the derived class, then a call to the parent class clean method.

Reimplemented from YACS::HMI::SubjectDynParaLoop.

Definition at line 3474 of file guiObservers.cxx.

References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::SubjectDynParaLoop::clean(), localclean(), and YACS::HMI::SubjectNode::registerUndoDestroy().

3475 {
3476  if (_askRegisterUndo)
3477  {
3478  _askRegisterUndo = false;
3480  }
3481  localclean(command);
3482  SubjectDynParaLoop::clean(command);
3483 }
virtual TypeOfElem YACS::HMI::SubjectOptimizerLoop::getType ( )
inlinevirtual

Reimplemented from YACS::HMI::Subject.

Definition at line 664 of file guiObservers.hxx.

References YACS::HMI::OPTIMIZERLOOP.

664 {return OPTIMIZERLOOP;}
void SubjectOptimizerLoop::localclean ( Command command = 0)

Definition at line 3485 of file guiObservers.cxx.

References DEBTRACE.

Referenced by clean().

3486 {
3487  DEBTRACE("SubjectOptimizerLoop::localClean ");
3488 }
bool SubjectOptimizerLoop::setAlgorithm ( const std::string &  alglib,
const std::string &  symbol 
)
virtual

Definition at line 3490 of file guiObservers.cxx.

References YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::SubjectNode::getNode(), and YACS::HMI::GuiContext::getProc().

Referenced by YACS::HMI::EditionOptimizerLoop::onModifyEntry(), and YACS::HMI::EditionOptimizerLoop::onModifyLib().

3491 {
3492  DEBTRACE("SubjectOptimizerLoop::setAlgorithm " << alglib << " " << symbol);
3493  Proc *proc = GuiContext::getCurrent()->getProc();
3494  CommandSetAlgo *command = new CommandSetAlgo(proc->getChildName(getNode()), alglib, symbol);
3495  if (command->execute())
3496  {
3497  GuiContext::getCurrent()->getInvoc()->add(command);
3498  return true;
3499  }
3500  else delete command;
3501  return false;
3502 }

Member Data Documentation

YACS::ENGINE::OptimizerLoop* YACS::HMI::SubjectOptimizerLoop::_optimizerLoop
protected

Definition at line 667 of file guiObservers.hxx.


The documentation for this class was generated from the following files: