<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (hpc) - Chapter 3: How HPC-GAP organizes java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 0
< =
<meta=< type/">(;
<link rel="stylesheet" typejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<cript=".js"type"text/javascript"></script
<script type="text/javascript">overwriteStyle();</script>
</ead
<
<pAspecialregion that permit operations include particular immutable (<p>A special public region contains objects that only permit atomic operations. These include, in particular, all immutable objects (immutableid
<pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p> ="X7E0116957AFB982D"
<>3.5 <pan
<p>The read-onlyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p><a java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<h4
<p>Objects
<p>The <code
<p>The <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>Finallyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 226
<p>It is generally not possible to
<p><div classjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>One exception isp>One exception that can objectsp<class>NewSystemRegion functionscode="><>href=.X851C5F3C82F6F5AE"< =RefLink<>a) that below=func>< =chap3#">spanclass"">392>>.It is to used by the standard GAP .
<p>To inspect objects whose contents lie in
<pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<h4>3.9 <<< ="X86C54C9278FE00F4
h5<>
<h5>3.9-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<
<> unctionclassNewRegioncodecreatesnew regiontheargument classrgame>isthenname new will set<var"name.
<div class=">NewRegion region<span
<region: example region>
<pre>id=X83864D427DE991F2name"
p< id"X86BEBBAF855AA26A ame""a>/>
<p><a id="
3.9-7 RegionOf
n<h5
<div classjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
<p<code ="">NewLibraryRegion/code> likeclassfunc
<>< idX7FB0BE4C78CA85DA=X7FB0BE4C78CA85DAa<p>
<h593NewSystemRegion/h5>
<divdiv="func"< classfunc="0%>tr>< =tdleft> class=unc">#82;NewSystemRegion>< classGAPprompt&;<panspanclass"RegionOf(123;<>
<""/>functions code="">NewRegion>(ahref.="RefLink">.-1/span) that thecreatesof=func
<a idX825A881A7A39C5C3=java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 62
5java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
<divfunc =func=0%<<tdtdleft =""82;<<codevar=n</>] )/>< classnbsp&;)td><t></div
<p><code class="func">NewInternalRegion</p>< ="func>NewInternalRegion>functions java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<h5>a=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<div class="func>3.98
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span class="<
class="
">RegionPrecedence/code return precedence the region of < class=Arg> spanGAPpromptaps < class"APinput>RegionOf([1,2,3]);/span>
<span class="GAPprompt">gap></spanlt;region region #0;
&;: threadregion&;
<span class="GAPprompt">gap>lt 0x45deaa0gt;
<region 0x45deaa0>
<span=""gapgt/> span=""RegionOf[23)<java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 24
<999
<region: test>
</pre></div
<p>Note
<div
<GAPprompt<span >>
true
</pre<p>The <code class class"">apgt/> <span=GAPinput>(1 (5;<java.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
<p<code
<>3.9-8 RegionPrecedence> class"unc"<codewthejava.lang.StringIndexOutOfBoundsException: Range [90, 89) out of bounds for length 121
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span class="GAPprompt">gap>301
anclass19
30java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 spanjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 119
19999
</pre></div>
< class=">(nbspnbsp><tr>d>
f=#"spanclass"efLink.-<span/>) the regionisnegative. java.lang.StringIndexOutOfBoundsException: Index 250 out of bounds for length 0
< =func>tableclass =00%"<>tdclass""< class=">ShareSingleObj>(var5">spanclass""39-<><) the the ">hareSingleObj>(a hrefchap3.tml508A72B7C215FA5A72B7C215FA5>="3-5/>>. intended libraries java.lang.StringIndexOutOfBoundsException: Range [433, 432) out of bounds for length 446
<p>The <code class="func">ShareSingleObj</code> function creates a new shared region and migrates the object, but not its subobjects, to that region. If thedivclass">tableclassfunc" width"10%
<div class="example"><pre>
< class="GAPprompt>&;/pan spanclass=GAPinput" =[[
<class>&;s> =GAPinput();span
<span class="GAPprompt">gap></spanjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
<Display(m[, ]
<span class=/pre>
[lse ]
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p><a id="
<h5<class"func>code >code (a "chap3..html#X8508A72B7C215FA5"<pan=""3-</pan/>,, that precedence theregionit creates the available It isintended beusedforregionsthat self-contained.e nofunction uses a region lock regionwhile .</p>
class1"tr> ="">></ar>[[, arclass"Arg>
<h5>3.9-17 ShareSingleSystemObj<
<divlass""><tableclass=func"width="10">
#2;ShareSingleSystemObj<( >obj/>[, <ar=><var< class="Arg>]]td tdright> nbspfunction&java.lang.StringIndexOutOfBoundsException: Index 291 out of bounds for length 291
<p><code class="func">ShareSingleSystemObj
a=<>91ShareSingleKernelObj
<h5
< =func""width%"< class="">#2;ShareSingleKernelObjp>< ="">ShareSingleKernelObj">hareSingleObj/>.#X8508A72B7C215FA5> ="">.-5/><>),exceptthe the it is that code="func< href=""< class">.7spana)Itisntendedto ernel interacts java.lang.StringIndexOutOfBoundsException: Range [491, 490) out of bounds for length 495
p>=></codefunctionslikejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<< ="X85C5F5A67DAFD919 =X85C5F5A67DAFD919>/a>/pjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
<h5
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ShareSingleInternalObj</code>( <var class="Arg">obj</var>[, <var class="Arg">name</var>] )</td><td
<p><code class="func">ShareSingleInternalObj</code> functions like <code class="func">ShareSingleObj</code> (<a href="chap3.html#X8508A72B7C215FA5"><span class="RefLink">3.9-15</span></a>), except that the precedence of the
<div class="func"><h5 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p><code class="func">ShareSingleLibraryObj</code> (<a
<
h51<
<java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 250
<p>The;
<p>For
<p><a id
<h5>3.9-22 MigrateSingleObj</h5>
< ="funcclass"" ="1%t<>code>2;MigrateSingleObj> classA>/, =>>)<<=tdright>nbsp&;)td<>>
<p>The <code class="func">MigrateSingleObj</code> function works like <code class="func">MigrateObj</code> (<a href="chap3.html#X81A356DD84E76A8A"><span class="RefLink">3.9-21</span></a>), except that it does not migrate the subobjectsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p><a id
<h5>3.9-23 LockAndMigrateObj</h5>
<div =func =funcwidth=>gt> class>listjava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
<> < =""></code works <codespan=">gt" IncorporateObjlist2, 456;<
<="X7D1943AF793296F7">/</a>pjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
<div class="example"><pre>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
atomicdiv=func
targetp classfunc/> odejava.lang.StringIndexOutOfBoundsException: Range [92, 91) out of bounds for length 250
od;
end;
</pre></div>
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
< class<end
IncorporateObj :[]value)
/></>
target
end;
</prediv
<p>The
<div class="exampleAtomicIncorporateObj := function(target index, value)
<span class=" target(index :
<span class="GAPprompt">gap&;
<span;
class>;/panspan=><span class="GAPprompt">></span> <span class="GAPinput"> IncorporateObj. <>
<span class="GAPprompt">></span> <java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span3 </>
<< ="">gtspandiv="tablejava.lang.StringIndexOutOfBoundsException: Range [30, 26) out of bounds for length 217
[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]
</pre></div>
<>Usingplain would the created <pT code=/>function var=""<varregionrequires < =">bj/var>.
<" =">/java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
<h5>3.9-25 AtomicIncorporateObj</h5>
<divclassgap;span< class> l AdoptObj; ;</>
<p><code class="func"span="gapgt">IsThreadLocal()>
<div class="example"><p< ="X834DDB388600E9FA" [[,2]4,, ,8 ]]
f(, , java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
atomic target, value
[] =MigrateObjvalue)
od;
end325 </>
</pre></div>
<p>If <code class="code">target</code> is a record, then it is equivalent to:</<chap3 class>.92<span/> by locking target.Ie., a, it equivalent :<p>
tdrightnbsp<<>/>
target.(index) a targetvalue
od[index= MigrateObj(, target)
end>id ="">/a<java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
</pre>/>/<="">table="="10"
<p><a id="X834DDB388600E9FA" name="X834DDB388600E9FA"><<divclass"examplejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<h5>3.9-27 AdoptSingleObj</h5>
<div="func>table class=" ="0%>tr>td =tdleft>#8822; AdoptSingleObj< class"Argobjvar/><td="tdright">nbsp;</>/>/tablejava.lang.StringIndexOutOfBoundsException: Index 223 out of bounds for length 223
<p>The <code class&;<pan<span="APinputIsThreadLocal(l);
<div class="func"><table <p><a id="X867CDC9285D30DE8">
<p>The <code class="func">CopyRegion</code> function performsh5
<> <code classfunc</code>function true its an in current' region, false otherwise./>
(,,3];/span
[ 1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span class="GAPprompt">gap></span> < class>>spanclass""
[ 1, 2, 3 ]
<span class="GAPprompt">gap></spandivclassfunc< classfalse
false
<span class="GAPprompt">gap></span> <span class="GAPinput">
false
<span class&tpublic>
true
</pre></div>
<p><a id
<h5>3.9-30 IsPublic</h5>
< ="">tableclass="func" width"">trtdclass="tdleft>code ="func&82; IsPubliccode(< =Argobj/>)</d>tdclass="">&p>The codeclass""><codefunctionreturnstrueif argument object a shared. Note if the thread not hold on shared, thread migrate class</> todifferent before being;this to. function primarilydebuggingnotbuild program around
<< =">
<div
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
true<div class=func>< class width">td class"">">&827true
<< classGAPprompt>>span=" =ShareObj(12,3]);;
false "gap<>< =>sPublicShareObj(13)<>
false
>java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 102
true
</pre></div>
<div class="func"><table class classGAPpromptgap;</span classGAPinput(MakeImmutable,,3)/>
<p>The <code class="java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
div"">> span classjava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 92
true spangap>class"IsThreadLocal(ShareObj(([1,,3))>
false
<span class="GAPprompt">gap>
false
< class="APprompt""
&;publicregionjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
</pre></div>
<div class="func"><table classh5>3.93 MakeReadOnlyObj>
<p>The <code class="func">IsShared</codejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<divclass="functableclass"func"00"><trtdclass"tdleft>‣ HaveReadAccess var ="">obj)/td>td class=tdright>(nbsp;function )
<>aidjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62
<div classfunc<class" width=10%tr>td ="tdleftcodeclassfunc"̻ ( "func" java.lang.StringIndexOutOfBoundsException: Range [45, 43) out of bounds for length 222
true
<span class="GAPprompt">gap></span> <span class="GAPinput">l := ShareObj([1,2,3]);;</span>
<span class="GAPprompt">gapdiv="example"=gap;/><pan =" =GAPprompt">&;<>< =GAPinput(13)<span
false=>gap/spanspan"l := ShareObj([,2,3];;
<span class classGAPpromptgap;/>spanclass"APinput>l)/span>
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
</pre></div>
<
<h5>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<div class="func"><table class="func
<p>The <code class="func">SetRegionName</code> function sets the name of the region of <var class="Arg">obj
<p><a id="java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<h5>3.9-39 ClearRegionName</h5>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ClearRegionName</code>( <var class="Arg">obj</var> )</td><tdjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>The <code
<div class="func"><table class<div class="example"><pre>
<The class"/code> function returns the name of the region of If that region doesnot a name, codeclass="">fail will be returned>
<spanclassgap<> span=""atomic Display ;span
h51</>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ ViewShared</code>( <var class="Arg">obj<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<> <code=func</> allows inspection of in shared. It will to the region and then <="code">(obj)</code. If cannot acquire lock fortheregion itwill simply displaythe description of theobject<p>
<p>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<div class=java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 87
< class">>>/> < class"(MakeReadOnlyObj[1,23]);p
<span class="GAPprompt">gap
<span class="GAPprompt">gap></span> <java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 0
[ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
</pre></div>
<div classexample><pre>
<span class="GAPprompt">gap<>Forreasons of implementation,
<span class="GAPprompt">gap></span>
<span class="GAPprompt">gap></span
i l2 ;<spanp>a id="X83AD36A68503CF70" nameX83AD36A68503CF70/>/>
<span classp> <code="unc>/ode>function the name theregionof"
<spanclass"&;/>< =GAPinput"> ;</>
<
[ 6, 7, 8, 4,divclass="func>
<<>
<p>Atomic statements>a ="X80D0DFAB7F7241E8" name<of value will can offunc allowsofregion
<>a =""
<h4>3.10 <span class="Heading">Atomic functions</
<> ofatomic regionsfunctions be declared atomicThis sameas the'sbody enclosed in an atomic .declared either< class"code"/code> code class"">eadonly/code> will thesamewayjava.lang.StringIndexOutOfBoundsException: Range [325, 323) out of bounds for length 527
=""><table="func ="0%
<p><java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<p>The[| BindOnce index);
pThe threadto least accessto< class"
<p><a id="X8673539F7DA79110" name="
<h5>3.11-2 <div class="example="example"<>
<div class="func"><table class>&
<>code="func">TestBindOnce> works <codeclassfunc>( href.html#X83AD36A68503CF70><spanclass="RefLink>31-1/>/a>,except that it returnseyw<codeifvaluebound< classkeywfalse otherwise/
<divh4>30< classHeadingAtomic<spanh4
<p><code class="func">TestBindOnceExpr</code> works like <codepInstead atomic, functions be to be. This the effect though function' were in anatomicstatement.Function arguments can declared either readwrite <codeclass""></>;they be in same as alock.If argument preceded <code="code> norreadonly/>,the objectwillnot locked.Example
<divclassfunc class width="10%>&82;StrictBindOnce(< class">objArg"index/var> var class=Arg>expr)/>
tdright&;function <tr>
<p><code class="func">StrictBindOnce</code> works like <code class="func">BindOnce</code> (<a href="chap3.html#X83AD36A68503CF70"><span class="RefLink">3.11-1</span></a>), except that classGAPprompt&;<spanspan="> Add, item;/>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.