version 1.10, 2000/08/02 15:27:10
|
version 1.12, 2000/08/24 15:04:44
|
Line 9 Resource Assembly Tool
|
Line 9 Resource Assembly Tool
|
1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31, |
1/7,1/8,1/10,1/14,1/15,1/16,1/21,1/22,1/29,1/30,1/31, |
2/2,2/3,2/10,2/12,2/13,2/14,2/15,2/17,2/18,2/19,2/20,2/21,2/22, |
2/2,2/3,2/10,2/12,2/13,2/14,2/15,2/17,2/18,2/19,2/20,2/21,2/22, |
5/2,5/3,5/4,5/5,5/6,5/8,5/9,5/13,5/18,5/20,5/22,5/24,5/25, |
5/2,5/3,5/4,5/5,5/6,5/8,5/9,5/13,5/18,5/20,5/22,5/24,5/25, |
6/7,6/8,6/9,6/10,6/12,6/15,7/4,7/26,7/28,7/31 |
6/7,6/8,6/9,6/10,6/12,6/15,7/4,7/26,7/28,7/31,8/5,8/19,8/24 |
Gerd Kortemeyer with Scott Harrison |
Gerd Kortemeyer with Scott Harrison |
--> |
--> |
|
|
Line 347 function comingthru (jid,kid,dkid) {
|
Line 347 function comingthru (jid,kid,dkid) {
|
|
|
function insertport (obj1,d,inout,linkobj) { |
function insertport (obj1,d,inout,linkobj) { |
|
|
|
|
var k; var port; var revport; |
var k; var port; var revport; |
stored=0; |
stored=0; |
data1=obj[obj1].split('&'); |
data1=obj[obj1].split('&'); |
Line 486 function delobj(obj1) {
|
Line 485 function delobj(obj1) {
|
} |
} |
} |
} |
} |
} |
|
obj[obj1]=''; |
} |
} |
|
|
// --------------------------------------------------------- Garbage collection |
// --------------------------------------------------------- Garbage collection |
Line 678 function joinres (obj1,obj2,cond) {
|
Line 678 function joinres (obj1,obj2,cond) {
|
finishload(); |
finishload(); |
tryjoin(obj1,obj2,cond,-1,1); |
tryjoin(obj1,obj2,cond,-1,1); |
} |
} |
|
|
} |
} |
|
|
|
|
function tryjoin(obj1,obj2,cond,d1,d2) { |
function tryjoin(obj1,obj2,cond,d1,d2) { |
var k; var kr; var outcol; var incol; var d; |
var k; var kr; var outcol; var incol; var d; var dest; |
|
|
dest=objlinks.length; |
dest=objlinks.length; |
objlinks[dest]=obj1+':'+obj2+':'+cond; |
objlinks[dest]=obj1+':'+obj2+':'+cond; |
Line 882 function delres (obj1,recon) {
|
Line 883 function delres (obj1,recon) {
|
thiscond+='('+outobjscond[k2]+')'; |
thiscond+='('+outobjscond[k2]+')'; |
} |
} |
condnr=0; |
condnr=0; |
if (thiscond!='') { condnr=newcondition(thiscond,'normal'); } |
if (thiscond!='') { condnr=newcondition(thiscond,'normal'); } |
|
save(); |
joinres(inobjs[k],outobjs[k2],condnr); |
joinres(inobjs[k],outobjs[k2],condnr); |
} |
} |
} |
} |
Line 1406 function insertreslink(infostr) {
|
Line 1408 function insertreslink(infostr) {
|
dellink(lnr); |
dellink(lnr); |
newresource(rid,cid,'','','false','normal'); |
newresource(rid,cid,'','','false','normal'); |
nobj=obj.length-1; |
nobj=obj.length-1; |
|
save(); |
joinres(fobj,nobj,cobj); |
joinres(fobj,nobj,cobj); |
|
save(); |
joinres(nobj,tobj,0); |
joinres(nobj,tobj,0); |
} |
} |
|
|
Line 1426 function insertcondlink(cid,lnr) {
|
Line 1430 function insertcondlink(cid,lnr) {
|
dellink(lnr); |
dellink(lnr); |
newresource(maxrow,cid,'','','false','normal'); |
newresource(maxrow,cid,'','','false','normal'); |
nobj=obj.length-1; |
nobj=obj.length-1; |
|
save(); |
joinres(fobj,nobj,cobj); |
joinres(fobj,nobj,cobj); |
|
save(); |
joinres(nobj,tobj,0); |
joinres(nobj,tobj,0); |
} |
} |
|
|
Line 1742 function graphreset() {
|
Line 1748 function graphreset() {
|
insertcol(-1); |
insertcol(-1); |
|
|
objcont[0]=''; |
objcont[0]=''; |
|
objlinks[0]=''; |
if (((objcont[1]==undefined)&&(objcont[2]==undefined)) || |
if (((objcont[1]==undefined)&&(objcont[2]==undefined)) || |
((objcont[1]=='')&&(objcont[2]==''))) { |
((objcont[1]=='')&&(objcont[2]==''))) { |
objcont[1]='Start::false:start:res' |
objcont[1]='Start::false:start:res' |
objcont[2]='Finish::false:finish:res'; |
objcont[2]='Finish::false:finish:res'; |
objlinks[0]=''; |
|
objlinks[1]='1:2:0'; |
|
} |
} |
|
|
graphdef='no'; |
graphdef='no'; |
|
|
} |
} |
Line 2168 function graphopt() {
|
Line 2172 function graphopt() {
|
row[k]=k; |
row[k]=k; |
} |
} |
maxrow=rowcont.length-1; |
maxrow=rowcont.length-1; |
|
|
var oldlinks=new Array(); |
var oldlinks=new Array(); |
for (k=0;k<objlinks.length;k++) { oldlinks[k]=objlinks[k]; } |
for (k=0;k<objlinks.length;k++) { |
|
oldlinks[k]=objlinks[k]; |
|
objlinks[k]=''; |
|
} |
objlinks.length=0; |
objlinks.length=0; |
objlinks[0]=''; |
objlinks[0]=''; |
|
graphdef='yes'; |
|
save(); |
|
|
for (k=0;k<objsorted.length;k++) { |
for (k=0;k<objsorted.length;k++) { |
kj=(objsorted[k].split(':'))[0]; |
wheelswitch(); |
|
message("Connecting Resources: "+funny); |
|
kj=(objsorted[k].split(':'))[0]; |
for (ij=1;ij<oldlinks.length;ij++) { |
for (ij=1;ij<oldlinks.length;ij++) { |
if (oldlinks[ij]) { |
if (oldlinks[ij]) { |
data1=oldlinks[ij].split(':'); |
data1=oldlinks[ij].split(':'); |
if (data1[0]==kj) { |
if (data1[0]==kj) { |
joinres(data1[0],data1[1],data1[2]); |
joinres(data1[0],data1[1],data1[2]); |
|
save(); |
} |
} |
} |
} |
} |
} |
} |
} |
graphdef='yes'; |
|
} |
} |
|
|
// ----------------------------------------------------------- Remove e-objects |
// ----------------------------------------------------------- Remove e-objects |
Line 2407 function leave() {
|
Line 2418 function leave() {
|
if (!inf.closed) { |
if (!inf.closed) { |
inf.close(); |
inf.close(); |
} |
} |
if (stored==0) { |
|
if (confirm('Store changes?')) { |
|
storechange(); |
|
} |
|
} |
|
} |
} |
|
|
</script> |
</script> |