Sets ADT operation...
hi, i am alvin. i am a newbie in java language. hope you guys can help me sort my problem here.
Using array or linklist, how can i write a program of a set ADT that compute the intersection, union, difference and subset of two sets, say A and B? th maxarray size is, let say 100. pls advise.
for another question, is there anyone out there who is familiar with the Josephus problem(where ppl in a circle rotating kill themselve evrey n count?) how can i write those program using doublylinked list?
pls advise. thanks.
hahaha....how much are we talking aobut here....
Similar Messages
-
How to set multiple operating units in before report trigger
hi all
can any one help me out in getting clear in how to set multiple operating units in before report trigger in oracle report.
as we set single operating unit (mo_global.set_policy.context('S',81); as 81 is my operating unit).then who to set for multiple operating unit at run time.Sounds like eBusiness Suite, right? Better ask this in the appropriate forum.
-
Create set of operating recover discs
Hello
I like to create a set of operating system recovery discs.my manager shows my just the button: Recovery media creation.Where can i find the right button?
HP g7 1333 notbook
Thanks for answerHi
Please find the link given below will give you step by step process to help you create Recovery Disc.
Create a set of operating system recovery discs
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01895783&cc=ad&dlc=en&lc=en&jumpid=reg_r1002_us...
Let us know how it goes!
*Although I am an HP employee, I am speaking for myself and not for HP.
*Did my response help with your issue? If so, please give me Kudos by clicking the "Kudos" button. Thanks!
Regards
Manjunath
Let us know how it goes!
"I work for HP."
****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
****Please mark Accept As Solution if it solves your problem****
Regards
Manjunath -
Level of Maintenance to be set at operation Level
Hi All,
we have a requirement that we need to maintain Level of operation . on the basis of Level of Job.?
Like Operation 010 is Level 1 that can be small Job(Bolt lose)
020 Level 2 .......
030 Level 3.......?
So please suggest what ever best option for achieving this...
Thanks in advance
Regds
VinitThanks All,
Yes Pete requirement is like client wants small job like tightening of bolt is done by PP person so for that we give for that operation as Level -1 simlarly medium complexity can be done by both PP or PM people, High complexity done by PM people alone.
so there is same Level for Multiple operation also.
then we need report also for that
Regds
Vinit -
AWM Set Aggregation Operator based on Measure instead of Dimension?
Is there anyway to base an operator of a measure over a dimension on the measure instead of the dimension? In AWM, I notice that each Measure has an Aggregation tab that summarizes its operator over each dimension, but it is greyed out. The way I'd like it to work is to have one Measure be summed over the Dimensions, while another Measure is averaged over the Dimensions.
Found my answer: Not only do I need to make sure my cube is not compressed, but I also need to select "Override the Aggregation specification of the cube" under each Measure's General tab. This results in the contents of the Aggregation tab no longer being grayed out.
-
Set-up/operation without cartridges
Hi. I just bought a Pixma MG5420. My most immediate need is the scan function. I would like to postpone opening the print cartridges to maximize their longevitty.
Am I able to set up and operate the printer, including the wireless connection, without the print cartridges installed?
For set-up, the control screen seems to be stuck on the images showing how to install the cartridges, which suggests that the answer to my question is No, but I'm hoping there is a work-around.
Thanks, JanHello jmueller ,
You will need to have the inks inserted to continue setup and use of the printer. Without the inks inserted to resume the start-up procedure screen, the printer will not progress any further.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
RE: How to set createInsert operation with panel tab
Hi all,
I am using Jdeveloper 11.1.2.3.0
Here i have one form and it contains two panel tabbed subDetailedItems called List and New.
I have table in List Tab and form in New Tab.
Now my requirement is if i select New tab then it has to display empty fields to enter new record.
Help me to resolve the issue.
Thanks,
SyamNitesh,
I understood the usecase. But my question was, what happens if the user clicks on the New tab (a new record gets created due to createInsert - but not committed), then go back to another tab and then click on New tab again (another new record gets created due to next createInsert). Now, if the user commits, after entering values, he would have 2 rows added to the table (one with blank values and next one with data). You should have to handle that as well.
-Arun -
Error happen when set 'in' operator to ViewCriteriaRow
env:
JDEV EA
the code:
ViewCriteria vc = vo.getViewCriteria();
if (vc == null)
vc = vo.createViewCriteria();
else
vc.clear();
vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
ViewCriteriaRow vcr3 = vc.createViewCriteriaRow();
vcr3.setConjunction(ViewCriteriaRow.VCROW_CONJ_AND);
vcr3.setAttribute("BrokerId", "In ('ssss','dddd','ffff')");
vc.addElement(vcr3);
report exception:
oracle.jbo.expr.JIException: Mismatching parentheses
at oracle.jbo.JboException.<init>(JboException.java:332)
at oracle.jbo.expr.JIException.<init>(JIException.java:20)
at oracle.jbo.expr.JIExpr.getTerm(JIExpr.java:112)
at oracle.jbo.expr.JIExprSQL.getTerm(JIExprSQL.java:111)
at oracle.jbo.expr.JIExpr.getIdentTerm(JIExpr.java:226)
at oracle.jbo.expr.JIExpr.getMultiplyExpr(JIExpr.java:259)
at oracle.jbo.expr.JIExpr.getAddExpr(JIExpr.java:309)
at oracle.jbo.expr.JIExpr.getCompareExpr(JIExpr.java:358)
at oracle.jbo.expr.JIExpr.getBooleanExpr(JIExpr.java:401)
at oracle.jbo.expr.JIExpr.getAssignExpr(JIExpr.java:448)
at oracle.jbo.expr.JIExpr.getExpr(JIExpr.java:512)
at oracle.jbo.expr.JIExpr.getTerm(JIExpr.java:106)
at oracle.jbo.expr.JIExprSQL.getTerm(JIExprSQL.java:111)
at oracle.jbo.expr.JIExpr.getIdentTerm(JIExpr.java:226)
at oracle.jbo.expr.JIExpr.getMultiplyExpr(JIExpr.java:259)
at oracle.jbo.expr.JIExpr.getAddExpr(JIExpr.java:309)
at oracle.jbo.expr.JIExpr.getCompareExpr(JIExpr.java:358)
at oracle.jbo.expr.JIExpr.getBooleanExpr(JIExpr.java:401)
at oracle.jbo.RowMatch.getParsedExpr(RowMatch.java:211)
at oracle.jbo.RowMatch.rowQualifies(RowMatch.java:222)
at oracle.jbo.server.ViewObjectImpl.rowQualifies(ViewObjectImpl.java:1387)
at oracle.jbo.server.QueryCollection.rowQualifies(QueryCollection.java:2223)
at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2195)
at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2052)
at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1433)
at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3599)
at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)
at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:699)
at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:3185)
at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6893)
at oracle.jbo.uicli.jui.JUTableSortModel.getRangeSize(JUTableSortModel.java:121)
at oracle.jbo.uicli.jui.JUTableSortModel.checkModel(JUTableSortModel.java:100)
at oracle.jbo.uicli.jui.JUTableSortModel.getValueAt(JUTableSortModel.java:534)
at javax.swing.JTable.getValueAt(JTable.java:1852)
at javax.swing.JTable.prepareRenderer(JTable.java:3902)
at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1985)
at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1887)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1810)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:742)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4970)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent.paint(JComponent.java:995)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.jbo.uicli.controls.JUErrorDialog.showError(JUErrorHandlerDlg.java:254)
at oracle.jbo.uicli.controls.JUErrorHandlerDlg$1myRunnable.run(JUErrorHandlerDlg.java:351)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at com.kunteng.fabric.jclientview.MyInternalFrame.showQueryDlg(MyInternalFrame.java:298)
at com.kunteng.fabric.jclientview.base.CustomerFabricTableViewFrame.showQueryDlg(CustomerFabricTableViewFrame.java:117)
at com.kunteng.fabric.jclientview.MainForm.showQueryDlg(MainForm.java:665)
at com.kunteng.fabric.jclientview.MyJUNavigationBar.doAction(MyJUNavigationBar.java:521)
at com.kunteng.fabric.jclientview.MyJUNavigationBar.actionPerformed(MyJUNavigationBar.java:449)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)You might want to turn on Bc4j logging and see what kind of query it is building. I ran the following service method via a button on a form against the DEPT table, and it worked fine:
public void filterDeptWithINClause()
System.out.println("filterDeptWithINClause**** - START");
DeptViewImpl vo = getDeptView1();
//ViewCriteria criteria = vo.createViewCriteria();
ViewCriteria vc = vo.getViewCriteria();
if (vc == null) {
vc = vo.createViewCriteria();
else {
vc.clear();
// vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
vcRow.setConjunction(ViewCriteriaRow.VCROW_CONJ_AND);
// Be sure the attribute matches the View attribute column, or you get:
// JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25058: Definition DEPTNO of type Attribute not found in DeptView1
// JBO-25058: Definition DEPTNO of type Attribute not found in DeptView1
vcRow.setAttribute("Deptno", "In (10,20,30)");
vc.addElement(vcRow);
vo.applyViewCriteria( vc );
vo.executeQuery();
System.out.println("filterDeptWithINClause**** - END");
} // filterDeptWithINClause -
Set operator NE in Database View creation in join condition
Hi Experts,
I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
Join condition :
Ex : BSAK-AUGBL NE BSAK-BELNR.
You know that by default operator is '='. i want to set NE in place of '='.
Thanks,Hi Chinna,
Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
File Adapter 7.11 - set operating system command line dynamically
Hi,
is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
I need to set a command line exec depending on some XSL mapping values.
thx
holgerhi,
>>>is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
>>>I need to set a command line exec depending on some XSL mapping values.
think about this approach:
you put the XSL values into the filename after the real name of the file
in the batch script you use those values in order to execute a dynamic exe command
after processing you just change the name of the file in the script by removing the xsl values
simple ? I think so
Regards,
Michal Krawczyk -
RFE Proposal Set Operations - RFC
Greetings, this is a proposal for a Request for Enhancement in the JDK. It
is posted here for the review and comment. Basically an RFC on a RFE. =)
Please indicate your comments on the matter.
The proposal is to have a set of operations for perfomring Non-destructive
mathematical set operations on collections. Additionally, the addition of
set operations to rename the old operations int java.util.Collection
interface to names that are mathematically accurate; so that
removeAll(Collection c) would have an alias of difference(Collection c) and
retainAll(Collection c) would have a alias of intersection(Collection c).
The following methods would be added to the java.util.Collections class.
* Performs the non-descturctive union of two collections.
* The resulting collection is the union of the two collections with no
duplicates.
* @author Robert Simmons Jr.
* @param a The first collection of objects.
* @param b The second collection of objects.
* @return The collection wise union of and b.
public final static Collection collectionUnion(final Collection a, final
Collection b) {
Collection results = new HashSet(a);
Iterator iter = b.iterator();
while (iter.hasNext())
results.add(iter.next());
return results;
* Performs the intersection of two collections.
* The resulting collection is the intersection of the two collections with
no duplicates.
* @author Robert Simmons Jr.
* @param a The first collection of objects.
* @param b The second collection of objects.
* @return The collection wise intersection of a and b.
public final static Collection collectionIntersection(final Collection a,
final Collection b) {
Collection results = new HashSet();
Iterator iter = a.iterator();
Object element = null;
while (iter.hasNext()) {
element = iter.next();
if (b.contains(element)) results.add(element);
return results;
* Performs the difference of two collections.
* Removes all elements from a that appear in b.
* @author Robert Simmons Jr.
* @param a The first collection of objects.
* @param b The second collection of objects.
* @return The collection wise difference of b elements removed from a.
public final static Collection collectionDifference(final Collection a,
final Collection b) {
Collection results = new HashSet(a);
Iterator iter = b.iterator();
while (iter.hasNext())
results.remove(iter.next());
return results;
* Performs the XOR union of two collections.
* The resulting collection is the union of the two collections with objects
that appear in
* a and b left out.
* @author Robert Simmons Jr.
* @param a The first collection of objects.
* @param b The second collection of objects.
* @return The collection wise union of a and b excluding any objects that
appear in both a and b.
public final static Collection collectionXORUnion(final Collection a, final
Collection b) {
Collection results = new HashSet(a);
Iterator iter = b.iterator();
Object element = null;
while (iter.hasNext()) {
element = iter.next();
if (!(b.contains(element))) results.add(element);
return results;
* Performs the union of two maps.
* The resulting map is the union of the two maps with no duplicates.
* When working with set operations on a map, the set is assumed to be the
key set. For
* this reason, if both sets have the same key but different values then the
value from
* set b will beused as the value.
* @author Robert Simmons Jr.
* @param a The first map of objects.
* @param b The second map of objects.
* @return The map wise union of and b.
public final static Map mapUnion(final Map a, final Map b) {
Map results = new HashMap(a);
Iterator iter = b.keySet().iterator();
Object key = null;
while (iter.hasNext()) {
key = iter.next();
results.put(key, b.get(key));
return results;
* Performs the intersection of two maps.
* The resulting map is the intersection of the two maps with no duplicates.
* When working with set operations on a map, the set is assumed to be the
key set. For
* this reason, if both sets have the same key but different values then the
value from
* set b will beused as the value.
* @author Robert Simmons Jr.
* @param a The first map of objects.
* @param b The second map of objects.
* @return The map wise intersection of a and b.
public final static Map mapIntersection(final Map a, final Map b) {
Map results = new HashMap();
Iterator iter = a.keySet().iterator();
Set bKeys = b.keySet();
Object key = null;
while (iter.hasNext()) {
key = iter.next();
if (bKeys.contains(key)) results.put(key, b.get(key));
return results;
* Performs the difference of two maps.
* Removes all elements from a that appear in b.
* In this case, the set is determined to be the set of keys. The set of
keys from
* b will be used to remove keys from a.
* @author Robert Simmons Jr.
* @param a The first map of objects.
* @param b The second map of objects.
* @return The map wise difference of b elements removed from a.
public final static Map mapDifference(final Map a, final Map b) {
Map results = new HashMap(a);
Iterator iter = b.keySet().iterator();
while (iter.hasNext())
results.remove(iter.next());
return results;
* Performs the XOR union of two maps.
* The resulting map is the union of the two maps with objects that appear
in
* a and b left out.
* When working with set operations on a map, the set is assumed to be the
key set. For
* this reason, if both sets have the same key but different values then the
value from
* set b will beused as the value.
* @author Robert Simmons Jr.
* @param a The first map of objects.
* @param b The second map of objects.
* @return The map wise union of a and b excluding any objects that appear
in both a and b.
public final static Map mapXORUnion(final Map a, final Map b) {
Map results = new HashMap();
Iterator iter = a.keySet().iterator();
Set bKeys = b.keySet();
Object key = null;
while (iter.hasNext()) {
key = iter.next();
if (!(bKeys.contains(key))) results.put(key, b.get(key));
return results;
}Transcript of mail session with Sun java developer after bug submission:
Hi Robert Simmons Jr.,
Thank you for the feedback.
The method names in java.util.Set conform to the parent interface,
java.util.Collection. As for the destruction situation, returning a new set
also would involve creating and populating a new set.
If you would like to pursue this Request for Feature Enhancement (RFE)
further,
I would suggest that you first post this idea to a newsgroup and request
comment from other Java developers. The issues that we have discussed are a
good starting point.
You can view a list of Java newsgroups at:
http://java.sun.com/aboutJava/newsgroups.html
Based on the responses, please feel free to submit a new RFE containing a
link to the newsgroup. Thank you for your time.
Regards,
Jonathan
"Simmons, Robert" wrote:
>
I understand your reply now. However I put it to you that the names ofthese
operations are HORRIBLY named. They should be named according to the
mathematical operations. Further, they are destructive to the set being
checked and I dont want that. The set operations should give me back a set
and not destroy the current set. If they destroy the current set then Ihave
to spend time copying the thing before I run the set operation which is
truly not performant. Do an intersection of 400,000 elements with anotherfo
300,000 elements and you have to first copy one and then the retain all
method has to iterate through the entire set. This is very bad logic. Inthe
code I gave you, you have to only iterate through the set and not copy it.>
----------------- Original Bug Report-------------------
category : java
release : 1.4
subcategory : classes_util
type : rfe
synopsis : java.util.Collections Class Should Implement Logical Set
Operations
description : FULL PRODUCT VERSION :
This issue is pertinent to all java versions including the new 1.4 version.
FULL OPERATING SYSTEM VERSION : Occurs in all operating
Systems.
ADDITIONAL OPERATING SYSTEMS : NA
A DESCRIPTION OF THE PROBLEM :
The java.util.Collections class is a class that is used to
manipulate sets and change them into various forms. Missing
from this is a feature that would define set operations,
such as Union, Intersection, and so on on the sets. This
would be extremely beneficial. I have written an extension
to this class that does just that and would like to submit
it for donation. All I ask is that the javadoc tag naming
me as author be retained.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
<!-- snip source .. see above -->
---------- END SOURCE ----------
CUSTOMER WORKAROUND :
Writing your own classes to do this, however it is so basic
that it should be in there.
workaround :
suggested_val :
cust_name : Robert Simmons Jr.
cust_email : [email protected]
jdcid : Derisor (old one was gnuish)
keyword : webbug
company : Ingeniums Pharmaceuticals AG
hardware : x86
OSversion : Linux
bugtraqID : 0
dateCreated : 2002-03-11 13:31:18.3
dateEvaluated : 2002-04-11 18:08:17.247
Robert Simmons Jr.
Senior Software Engineer
Ingenium Pharmaceuticals, Munich Germany.
Robert Simmons Jr.
Senior Software Engineer
Ingenium Pharmaceuticals, Munich Germany.
Robert Simmons Jr.
Senior Software Engineer
Ingenium Pharmaceuticals, Munich Germany.Additional Bump. Seeking comments.
-
Hello Everybody,
Can someone tell what is meant by a Reference Operation Set?
Where can we create it and how can we assign it to the Routing?
What are the important feilds to be passed to it?
Please help. Its urgent.
Thanks,
Shashi Devi.Hi,
A Reference operation set can be created using transaction CA11.
Here we can enter a set of operations needed.
Then in CA01 (create routing) from the operations screen we can add the reference operation set & all the operations from the reference operation set will be copied to this routing.
Hence whenever we need to create a routing with similar set of operations we can use reference operation set.
Also to create a rework order we can use reference operation set with the help of trigger point.
Regards,
Senthilkumar -
Assignment of Reference Operation set to routing.
Dear Experts,
This is regarding the assignment of a reference operation set to a routing. We have one ref. op. set which is applicable for some 30 variants of our products. Now, we need to assign this ref. op. set to the existing routing. The follwoing points are to be taken care of:
1. Set up, m/c time, etc are allocated based on the operation number.
2. Change in the operation number leads to the change in these values. This is not acceptable.
Now when assigning the ref. op. set to the routing using the t. code. CA02, the systems asks for operation increment say 0010 (mandatory field). If we accept this value, the operation number follows a different sequence. Consequently, the setup, m/c times gets upset. This is due to upsetting of the operation number sequence.
How can we assign the ref. op. set to the routing without upsetting the operation number sequence i.e., copying the operations as it is in the ref. op. set.
Pl. suggest.
Regards,
Pradeep SantaraDear Sharavan,
Probably, i have not been able to explain the issue. I will give it another try..
Say for the ref. Op. Set the operation sequence is 12, 14, 19...so on
But when we assign the Ref. Op. set to the routing CA02, the at the intial screen we come across one mandatory field "operation srl. no. increment", if we use 0010 in that field . The system copies the ref. Op. set with operation serial nos. starting 00,0010,0020 onwards and not in the order of 12, 14, 19....so on...
If still not clear pl. revert -
Operation increement setting in routing
Dear PP Experts
I am wondering for a setting in routing. I want to set the operation increement setting in routing. Pl guide me
RegardsHi
For refernce operation set also the setting is in OPL8 itself
just select
1) selection id as - 05
2) test list type as - S
3) Riuting selection as - 2
and give the increment number
Regards
kumar -
Hello all,
I am a student at the University of Texas @ Austin and I have been
looking through the LV 5.0 documentation for any documentation about
Sets and/or Operations on Sets but cannot find anything usefull. Does
anyone know if LV supports Sets and operations on Sets, for example,
Union, Intersection, or just a way to specify the elements of a Set? I
have an assignment to create a Non-Deterministic Finite State Machine
Simulator and would like to implement it using LV? I have some ideas on
how to Fake the set operations but it would be much easier to not have
to re-invent the wheel. I will check the newsgroup, but please also
respond to [email protected]
Thanx in advance Jeffo ...."Jeffrey R. Orbach" wrote:
> Does anyone know if LV supports Sets and operations on Sets, for example,
>
> Union, Intersection, or just a way to specify the elements of a Set?
There are probably a number of ways to implement this in LabVIEW, depending
upon what kind of data you want in your sets, what kind of operations you
want to perform on them, etc. It's a pretty open-ended question without
more detailed knowledge of what you're after.
From my point of view, the LabVIEW array structure and its operators are a
construct that provides some set-like functionality right away:
specify set elements => array control on panel
check for membership => Search 1D Array
set union => Build Array (followed by Sort 1D Array if you want to keep the
set sorted)
set intersection
=> loop through one array using Search 1D Array on the
other to generate output set
This is one simple approach that shouldn't require a whole lot of coding or
wheel reinvention...
Regards,
John Lum
National Instruments
Maybe you are looking for
-
IPad Air + iOS 8 GM -- RD Client Crash
Hello, I am an iOS Developer and I'm running into an issue with the iPad Air + iOS 8 and the iPad's Microsoft RD Client. Whenever I click the "+" in the upper-right hand corner, and click "Add PC or Server" the client crashes. iPad Information: Devic
-
After re-editing in iWeb, it won't publish the changes to my webpage. iWeb acts as if it is republishing, but the site remains the same. Doesn't matter whether I click on the "Publish" button or File-Publish all to .Mac. I receive no error messages,
-
Credit check for Partially delivered order
Dear Gurus We have a scenario where we are releasing a sales order (vkm3) forcefully since it is exceeding the dynamic credit check. Now when we do a partial delivery for the first time it is working fine, But when we again try to create a delivery f
-
i am facing a problem with nulls getting printed from all my JSP's on the screen where the variables are not initialized to "". In weblogic, the jspc compiler has a param "printnulls" which can be set to false so that the word "null" does not get pri
-
Can't Figure Out Why Slide Advances
I have a slide set up as follows: Display Time: 20.1 secs Transition: No Transition On Exit: No Action I have a transparent button set to appear after 0.1 sec and pause after 15 secs. Why would this slide advance to the one after it automatically?