error [message #935776] |
Sun, 07 October 2012 09:55 |
dorraaaa Z Messages: 29 Registered: June 2012 |
Junior Member |
|
|
Hi,
i want to know where is the fault in this code, because i have error message
helper def : behavior(node:CTT!Task) : OrderedSet(CTT!Task) =
let children: OrderedSet(CTT!Task) =
if (node.oclIsUndefined()=false)then thisModule.getParent(thisModule.leaf(node)).hasChildren
->iterate(child; tab_children: OrderedSet(CTT!Task) =
thisModule.opChoice(child))
else drop endif
in children->select(e | not e.marqued and not e.Last() and
thisModule.behavior(CTT!Task.getParent(CTT!Task.getParent(thisModule.feuille(node)))));
[Updated on: Sun, 07 October 2012 10:39] Report message to a moderator
|
|
|
|
|
|
Re: error [message #936283 is a reply to message #935956] |
Sun, 07 October 2012 22:09 |
dorraaaa Z Messages: 29 Registered: June 2012 |
Junior Member |
|
|
ok thank you but when i write this code
helper def : behavior(node:CTT!Task) : OrderedSet(CTT!Task) =
let children: OrderedSet(CTT!Task) =
if (node.oclIsUndefined()=false)then thisModule.getParent(thisModule.feuille(node)).hasChildren
->iterate(child; tab_children: OrderedSet(CTT!Task) = children|
let tabPriority: OrderedSet(CTT!Task) =
if (child.temporalOperator.name='Choice'){ // mismatched input '{' expecting 'then'
tabPriority= thisModule.opChoice(child); //mismatched input ';' expecting 'in'
if (thisModule.exist(child)=true) //mismatched input ')' expecting 'else'
then
thisModule.behavior(child+1) endif //mismatched input 'endif' expecting 'in'
}
else {
if (child.temporalOperator.name='OrderIndependent'){
tabPriority= thisModule.opOrderIndependent(child);
if // mismatched input 'if' expecting EOF
(thisModule.exist(child)=true) then
thisModule.behavior(child+1)
}else { if (child.temporalOperator.name='Sequential Enabling') {
tabPriority= thisModule.opSequentialEnabling(child) ;
if (thisModule.exist(child)=true) then
thisModule.behavior(child+1) endif }
}
}
in (node.oclIsUndefined()=false))
else 0 endif
in children->select(e | not e.marqued and not e.Last() and
thisModule.behavior(CTT!Task.getParent(CTT!Task.getParent(thisModule.feuille(node)))));
i have error , there are montionned in the code , see it please
[Updated on: Mon, 08 October 2012 15:33] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.06094 seconds