Keeping track of an ever changing vector
Hi,
I have a strange problem that i can't seem to figure out.
i have a vector MemoryPool where early on another vector is added to it.
through further processing the vector that was added to the memory pool has cahnged in the memoryPool and i can't understand why because i don't use the memoryPool anywhere else.
heres a snippet of my code:
Vector BestMatch = new Vector();
BestMatch = t.bestMatch(MemoryPool,Antigen,stimIndex,memPoolStimulation);
MemoryPool.removeElement(BestMatch);
//so its at the end of vector
MemoryPool.add(BestMatch);
//point 1
//here the memoryPool has BestMatch at the end
ARB = t.ARBGeneration(BestMatch,hypermutationRate,clonalRate);
//point 2
//here Memory pool has best match at the end but missing a value
Vector Candidate = c.runARBRefinement(ARB, Antigen, maxDist,stimulationValue,clonalRate, totalResources);
//point 3
//here memoryPool has best match at the end but with added values
MemoryPool = MS.addCandidateCell(Candidate, MemoryPool, affinityThreshold, affinityThresholdScalar, maxDist);
ARB.removeAllElements();I want the MemoryPool at point 3 to be the same as point 1 but this isn't the case.
Can anybody try to explain what is going on please?
Cheers
Hi Elodie,
I don't know what happens within the methods ARBGeneration and runARBRefinement. What you could do is writing an monitorable BestMatch class:
import java.util.Vector;
public class BestMatch extends Vector {
public boolean add(Object o) {
new Exception("an object was added at the end")
.printStackTrace();
return super.add(o);
public void add(int index,Object o) {
new Exception("an object was added at index "+index)
.printStackTrace();
super.add(index,o);
public boolean addAll(Collection c) {
new Exception("a collection was added at the end")
.printStackTrace();
return super.addAll(c);
public boolean addAll(int index,Object o) {
new Exception("a collection was added at index "+index)
.printStackTrace();
return super.addAll(index,c);
public void addElement(Object o) {
new Exception("an element was added at the end")
.printStackTrace();
return super.addElement(o);
public Object remove(int index) {
new Exception("an object was removed at index "+index)
.printStackTrace();
return super.remove(index);
public boolean remove(Object o) {
new Exception("an object was removed")
.printStackTrace();
super.remove(o);
public boolean removeAll(Collection c) {
new Exception("a collection was removed")
.printStackTrace();
return super.removeAll(c);
public void removeAllElements() {
new Exception("all elements were removed")
.printStackTrace();
return super.removeAllElements();
public boolean removeElement(Object o) {
new Exception("an element was removed")
.printStackTrace();
return super.removeElement(o);
public boolean removeElementAt(int index) {
new Exception("an element was removed at index "+index)
.printStackTrace();
return super.removeElementAt(index);
public boolean removeRange(int fromIndex, int toIndex) {
new Exception("all objects from "+formIndex+
" to "+toIndex+" were removed")
.printStackTrace();
return super.removeElement(o);
}and then make your bestMetch of type BestMatch instead of Vector. This way all add/remove operations that are done in at the bestMatch can be viewed at the screen output.
I haven't tested the code above so there may be some minors in it.
Klaas
Similar Messages
-
How to keep Track of the wagetype Changes
Hi Experts,
How to keep Track of the Changes after changing the wagetype values.If any body has made changes to the existing wagetype, how do we keep a track of what changes has done, is there any standard Tcode through which we can get the information.
Thanks in advance,
Regards,
Magesh.SHi,
Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
01 O 1001 B002 Activate box checked
01 O 1001 B003 Activate box checked
Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
Similarly, you can set up this table for other object types.
For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
Hope this helps.
Donnie -
Is there ANY way to keep track of changes or versions in a dynamic form, viewed in Reader
I need to provide a measure of content control.
I looked at acrobat.com for help. There is a rather convoluted method and I don't know if I can get my company to go along with it.
I have a dynamic form and it has to be dynamic, so I cannot change it to static to give it Comment/Markup ability - out of the question.
Does anyone know of ANY way to keep track of changes or comments or anything? And if you know, please be as specific as possible.
Thanks!No replies, so I assume that there isn't any way to do this at present. Do people agree that this would be a really useful feature?
-
Keeping track of changes in Database
Hi ,
I need to keep track to the changes in tables (New Inserts , Updates , Deletions) and Procedure / Package source changes that are done , The trace is required on OSUSER
<br><br>
Kindly guide if there is a way to do this .
<br><br>
Many thanks.
<br><br>
Ashish Roy.Hi,
You can enable auditing for tarcking any changes in database.
http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/cfgaudit.htm
regards
Jafar
http://www.oracledbarea.blogspot.com -
How to keep track of the changes done in ALV GRID Report
Hi Experts,
how to keep track of the changed record in ALV GRID Report. how to set the field to be editable even for the entire row also. Can anybody guide along with code also?...
Valuable answers will be rewarded.
Thanks,
Satish.Hi,
Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
01 O 1001 B002 Activate box checked
01 O 1001 B003 Activate box checked
Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
Similarly, you can set up this table for other object types.
For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
Hope this helps.
Donnie -
How to keep Track of the Changes after Go live in OM
Hi Experts,
Need one information, after Go Live, PPOME is used by the end users for tracking or updating daily changes. While making he changes do we also need to keep a copy of the changes made in the Development server or it is fine if the changes are seen only in Production system.
If any body has made changes to the existing Organization and Staffing, how do we keep a track of who has done the changes is there any standard report through which we can get the information.
Please advice.
Regards,
SubbuHi,
Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
01 O 1001 B002 Activate box checked
01 O 1001 B003 Activate box checked
Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
Similarly, you can set up this table for other object types.
For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
Hope this helps.
Donnie -
How to keep track of changes made to PO
CAn anybody help me in resolving the issue of implementing Version Management. Once the PO has released fr release strategy, any changes made to PO after that should get notified to the user. Also if the changes are related to Pricing ten release strtegy should agin be set for that PO.
Expecting reply soon.
Regards,
Anup.its time cosuming process :
check table CDHRD/CDPOS tables to keep track of changes.
Regards
Prabhu -
How to keep track of changes made for a particular Inq Doc number.
hi all,
my senario is as follows :
the requirement is to send mail every time we take print for a sapscript for inquiry ..however the header and the body of the mail will change depending whether the user created a new inquiry doc or changes an existing doc. how to keep track of the changes.
please give me some suggestion.
thanks in advance
Srinivasits time cosuming process :
check table CDHRD/CDPOS tables to keep track of changes.
Regards
Prabhu -
Any standard table that keep tracks of changes in user attributes
Hi,
We have a HR system and we are tyring to find out a standard table that keep tracks of changes(when was it changed,who changed it,what has been changed) in user details like email,address etc.
Plz let me know the solution
Thanks
Bala DuvvuriCDHDR
CDPOS -
How to keep track of changes in PHP project?
I am doing a large project with PHP language. I would like to use some tool to keep track of each change I make. It would be very nice to go back to different phases and situations before changes. It seems hard to keep track of everything by hand.
What web-based or other tools could I use that would keep track of changes?There are numerous version control systems including google:CVS, google:SVN and google:mercurial to name but a few - give SVN a try.
Unless you run it locally the best way to get access to a SVN repo is to get yourself a project on somewhere like google:gna or google:berlios - I'm sure they'd be happy to support you -
Hi Experts,
Is it true that BPS cubes are able to keep track of changes whereas basic cube cannot? Pls help confirm this for me. Thanks.
And, what is 'value type' as used in BPS? What is its meaning, function, purpose?
Hope to hear from you.
MirellaMirella,
Well, it is partially true that BPS keep track of changes. What happens is that BPS creates difference records. So if you had amount of 100 from before and you change it to 80, it creates a difference record of -20. If you change it again to 110 after saving the previous one, it creates a difference record of 30 so 100,-20,30 gives you an aggregated number of 110. If you compress the cube, they woudl get consolidated back to 1 record.
Value type or 0VTYPE in BW is often used in planning to denote different type of data such as
10 - Actual
20 - Plan
etc.
it could be the basis to lock data i.e. Actual 10 data slice, to know what is actual and what is other types, and basically denote the type or maybe even indirectly the source of the data.
Hope this helps, Mary -
My IPad has been stolen and I was trying to track it on 'find my ipad' but the thief kept it offline. I just saw him change my user id. Any recommendations on how I can keep tracking the stolen device?
Yes, I filed police report, but there is nothing they can do until I get back to them on the tracking. It's been offline. I'm sure the whoever took it can find a way around breaking in the ipad..i really was hoping to get my pictures and videos of my kids back
-
Has anyone ever dowloaded Refog Keylogger on their apple computer? Its a surveillance software to be able to keep track of what your kids are doing on their computer?
I Have downloaded a keylogger before
-
Can't keep dialog track in sync when changing smpte start for bar 1.
I can't keep dialog track in sync when changing smpte start for bar 1. I have picture and dialog in sync starting at 00:59:58:00. My smpte counter matches the visual timecode in the picture. When I set bar one to start at a particular TC number the dialog track moves with the bars. I want it to stay put, in sync with pic. I have locked the smpte position for the region but it still moves. please help!
This might be a long-shot, but check your Tempo window and see if any of the tempo events starts in the negative bar range.
Also, while you're at it, check your markers page as well.
Worst case scenario, you can insert measures in order to push all of your tracks so that they start at bar 1 again, but this is very important: if you do this, make sure that your tempo events (and markers, while you're at it) are also selected before you insert the measures. You can check this by simply opening the tempo and marker windows, and, if those events aren't selected, use CMD-A (standard command) to select them all. Then do your insert.
Lemme know how it goes... -
Keep Track of Changes in Website à la "Copernic Tracker"
Hello,
is there an app on OSX available which makes it easy to track HTML Webpages for changes and mark the changed Text or new URL like "Copernic Tracker" does?
http://www.copernic.com/en/products/tracker/index.html
http://www.copernic.com/images/mediakit/screenshots/tracker/main-1-screen-ENG.gi f
or do i have to use an rss reader for this, even the page has no rss stream ? i wonder because i found the copernic tracker much easyer to check than a simple rss feed
and if there is no such app on osx which rss tool is effective for such thins when you watch 200 websites? safari? PulpFiction? NetNewsWire? or do i have to use bootcamp?
have a great time adrianHi, Adrian.
When looking for new applications, I recommend searching MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings can be helpful in sorting the wheat from the chaff.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Maybe you are looking for
-
Hello! I built up a web site and I want to test them using ANT. It works fine with other web page, however it doesn't work with web pages with "session" statement. For example in login.jsp I have the following statement session.setAttribute("user", r
-
Rename file title in GOS ( Generic Object Services )
Hi All, When I use GOS to attached a business document for example in ME22N ( Create PO) when I display the attachment list, the file will be named/title as "Archive Link document content Storage" which based on the document type text. Is there any
-
Full ABAP Edition-Trial instalation problems
Hi, I tried to install the Fulle ABAP edition Tiral but I had some problems I can't solve on my own. The first steps was alright and real installation began until Step 4. At this point there was 24 actiosn to cmplete. The 16th first was alright but d
-
How to debug this error? trying to load excel file to Database
SSIS package "c:\users\asubedi\documents\visual studio 2012\Projects\Integration Services Project1\Integration Services Project1\PackageToLoadBuyerDedupe.dtsx" starting. Information: 0x4004300A at BuyerDedupe, SSIS.Pipeline: Validation phase is begin
-
ITunes doesn't have a song I want what to do?
The song is by Nicki Minaj it's called "Girlfriend" but it's not there I tried sending apple a email but didn't get a reply what should I do