61 actions =
new ptrlist<analysis> ();
62 orgacts =
new ptrlist<analysis> ();
73 actions =
new ptrlist<analysis> ();
74 orgacts =
new ptrlist<analysis> ();
103 orgacts =
new ptrlist<analysis> ();
177 if (
c == cand)
return 1;
198 if (n == NULL)
return NULL;
201 if (!strcmp (a->getName (),
n))
213 if (a->getType () ==
type)
221 ptrlist<analysis> * alist = child->getAnalysis ();
222 for (
int i = 0; alist &&
i < alist->length ();
i++) {
223 analysis * a = alist->get (
i);
224 if (a->getType () ==
type)
242 if (!a->isExternal ())
255 if (!a->isExternal ())
264 if (!a->isExternal ())
266 a->
getEnv()->runSolver ();
274 if (!a->isExternal ())
314 analysis *
parent, * child, * a;
316 int i, dcApplied = 0;
326 if (cn != NULL && !strcmp (cn, child->getName ())) {
327 a->addAnalysis (child);
343 }
while (parent != NULL);
346 parent =
new analysis ();
349 actions =
new ptrlist<analysis> (*(parent->getAnalysis ()));
355 ptrlist<analysis> * alist = parent->getAnalysis ();
356 for (
int i = 0; alist &&
i < alist->length ();
i++) {
357 analysis * a = alist->get (
i);
360 parent->delAnalysis (a);
361 parent->addAnalysis (a);
370 child = parent->getPropertyString (
"Sim");
382 analysis * child = alist ? alist->
get (0) : NULL;
386 return child ? child : a;
391 ptrlist<analysis> * alist = a->getAnalysis ();
392 analysis * child = alist ? alist->
get (0) : NULL;
417 if (!
c->isOriginal ()) {
435 if (
c->getPort ())
continue;
437 for (
int i = 0;
i <
c->getSize ();
i++) {
438 _node =
c->getNode (
i);
439 if (!strcmp (_node->
getName (), _name)) {
458 for (
int i = 0;
i <
c->getSize ();
i++) {
459 _node =
c->getNode (
i);
460 if (!strcmp (_node->
getName (), _name)) {
473 sprintf (n,
"reduced%d",
reduced++);
481 sprintf (n,
"inserted%d",
inserted);
501 if (
c->getPrev()->getNext () !=
c) {
507 if (
c->getNext()->getPrev () !=
c) {
521 if (
c->getPort ()) count++;
531 if (!
c->getPort ()) count +=
c->getSize ();
541 if (
c->isNonLinear ()) count++;
558 next =
n->getNext ();
568 if (index < actions->length())
591 for (
int i = 0;
i <
c->getSize ();
i++) {
593 c->getNode(
i)->getName (),
c->getNode(
i)->getNode ());
594 if (i < c->getSize () - 1)
void removeAnalysis(analysis *)
int containsCircuit(circuit *)
void insertAnalysis(analysis *)
virtual int initialize(void)
placehoder for initialization function
void setEnabled(bool e)
Set a circuit element to be enabled or diabled.
analysis * findSecondOrder(void)
void deleteUnusedCircuits(nodelist *nodes=NULL)
int getPropertyInteger(const char *)
int getVoltageSource(void)
ptrlist< analysis > * findLastOrderChildren(analysis *)
int checkCircuitChain(void)
void setVoltageSource(int s)
ptrlist< analysis > * orgacts
int getVoltageSources(void)
analysis * findAnalysis(char *)
dataset * runAnalysis(int &)
void setName(const char *)
base class for qucs circuit elements.
char * getSubcircuit(void)
analysis * getChildAnalysis(analysis *)
virtual int cleanup(void)
placehoder for cleanup function
environment * getEnv(void)
ptrlist< analysis > * getAnalysis(void)
The analysis class header file.
void sortChildAnalyses(analysis *)
void insertCircuit(circuit *)
node * findConnectedCircuitNode(node *)
The circuit class header file.
void removeCircuit(circuit *, int dropping=1)
int containsAnalysis(analysis *, int)
void insertedCircuit(circuit *)
node * findConnectedNode(node *)
void getDroppedCircuits(nodelist *nodes=NULL)
ptrlist< analysis > * actions
analysis * findLastOrder(analysis *)
void insertedNode(node *)
The environment class definition.
void addNodeset(nodeset *)
void setActionNet(int, net *)
char * getChild(analysis *)
void setNet(net *netlist)
void insert(struct nodelist_t *)
void logprint(int level, const char *format,...)
void reducedCircuit(circuit *)