Length of a sequence

I have problems with sequences. When I try to define a sequence in an IDL (see the posted code), I have to give the length of the sequence, without the length it doesn't work. If I give the length it works fine.
But the problem is that the length of the sequence (array in java) is variable.
does someone kow what I can do about this?
Thanks in advance!!
interface PNIAdapterService {
   typedef sequence<string, 2> PricableItems;
   typedef sequence<string, 2> StartDates;
   typedef sequence<string, 2> EndDates;
   void addPriceableItemPromo(in string serviceMsisdn,
                              in PricableItems priceableItemId,
                     in StartDates startDate,
                     in EndDates endDate)
                raises( PNIAdapterException );

1) Move the typedef outside the interface
2) Have the PNIAdapterException vdefine somewhere
  typedef sequence<string> PricableItems;
  typedef sequence<string> StartDates;  
  typedef sequence<string> EndDates;
interface PNIAdapterService
   void addPriceableItemPromo(in string serviceMsisdn,
                                in PricableItems priceableItemId,
                                in StartDates startDate,                    
                                in EndDates endDate)               
                                raises( PNIAdapterException );
I have problems with sequences. When I try to define a
sequence in an IDL (see the posted code), I have to
give the length of the sequence, without the length it
doesn't work. If I give the length it works fine.
But the problem is that the length of the sequence
(array in java) is variable.
does someone kow what I can do about this?
Thanks in advance!!
interface PNIAdapterService {
   typedef sequence<string, 2> PricableItems;
typedef sequence<string, 2> StartDates;
typedef sequence<string, 2> EndDates;
   void addPriceableItemPromo(in string
serviceMsisdn,
in PricableItems
in PricableItems priceableItemId,
                     in StartDates startDate,
                     in EndDates endDate)
raises( PNIAdapterException );

Similar Messages

  • Logic pro 7 session won't let me extend the length of my sequence

    that slider at the top that lets you extend the length of your sequence won't budge passed 2318 or somenthing like that. Is their a cut off limit? why isn't it let me extend it any further?

    This is from the Reference manual page 93
    Song End
    Below the song title, you’ll see a numerical field that indicates the song end position. As soon as Logic reaches this position, it will stop automatically, except when recording. In this situation, the song end point is automatically moved to the end of the recording.
    The maximum length of a Logic song is 8550 quarter notes, or about 2158 bars in 4/4 time.
    A song can therefore last a maximum of around 70 minutes at a tempo of 120 bpm. At 95 bpm, the maximum length is o ver an hour and a half.
    If you need to increase this length, for film synchronization as an example, just halve the tempo. You can achieve the same result by using 4/8 time instead of 4/4 time, and treating quarter notes as eighth notes. A 4/8 song at a tempo of 60 bpm (equivalent to 4/4 at a tempo of 120) has a maximum length of more than 4273 bars, or over 2 hours and 22 minutes.

  • How can I get the length of a sequence using script

    I am trying to get the length of an image sequence that was imported using importOptions.sequence.  I need to check that the length is a correct number, and if it is too short/long it gives an error message.
    Is there a way to do this?
    Thanks

    //Assumes that your clip is the first item in your project
    var a = app.project.item(1).duration;     //Returns clip length in seconds
    var b = app.project.item(1).frameDuration     //Returns a single frame length in seconds
    var c = a/b;     //If you divide the clip duration by the frameDuration, you should get clip length in frames

  • Sequence Length in Audition CC

    When I send a sequence from PPro CC, the scale of the sequence displayed in the sequence reflects the greatest length of the sequence in PPro at any time during the edit. For example: At one point the video sequence was 60 minutes long, but I have cut it down to 5 minutes, locked picture, and now I "edit in Audition." Now the timeline in Audition is 60 minutes long, with a little bitty 5-minute patch of clips over on the left.
    Is there any way to make Audition trim the empty space at the end? Like force-setting the end of the sequence?

    The quickest method to "reset" the view in Audition would be to click the "Zoom Out Full Both Axes" button, located at the top-right corner of the Editor window:

  • How to ignore footer in fixed length file

    I have the following data which needs to be processed
    SMAL002495
    SMAL002496
    %%EOF
    which consists of multiple (unbounded) records with a single end of file marker (%%EOF)
    This is the existing schema used:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="--suppressed--"
    xmlns:tns="--suppressed--"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="container">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="detail" nxsd:style="array" nxsd:cellSeparatedBy="${eol}" minOccurs="1" maxOccurs="unbounded" nxsd:arrayTerminatedBy="%%EOF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ABC" type="xsd:string" nxsd:style="fixedLength" nxsd:length="20"/>
    </xsd:sequence>
              </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    How can I skip %%EOF and avoid having the inbound file rejected, given the adapter tries to allocate an element of 20 characters in length? (nsxd:arrayTerminatedBy, as shown above does not work as presumably, the %%EOF is on a separate line)
    Is there a way I can exclude the %%EOF marker, or skip, or ignore it?
    Thanks

    There is a command StartsWith wich may help in this situation. You can play with the code but you should get the idea. BPEL will read it in but you can ignore by not mapping.
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="suppressed"
    xmlns:tns="suppressed"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="container">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="detail" nxsd:style="array" nxsd:cellSeparatedBy="${eol}" minOccurs="1" maxOccurs="unbounded" nxsd:arrayTerminatedBy="%%EOF">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ABC" type="xsd:string" nxsd:style="fixedLength" nxsd:length="20"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Dummy" nxsd:startsWith="%%EOF" maxOccurs="unbounded">
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    cheers
    James

  • How do I save clips to a new length?

    Sorry if this is basic, but I can't get it working, and can't figure out how to search for it.
    I'm using FCP 5.0.4 on a PPC (non-intel).
    I have 11 original source clips which are an HD Apple Intermediate Codec. I need them to be native HDV and each trimmed to a specific length.
    I've imported all 11 files into an FCP project that uses Easy Setup for HDV 1080i60.
    I have edited all 11 clips to desired length on a sequence.
    I've TRIED to use Media Manager to recompress the media to HDV 1080i60 and delete the unused portions of the clips...
    BUT
    the clips end up getting saved with their original durations (that is, they haven't been saved to the lengths I edited them to in the sequence).
    What am I doing wrong? Can anybody walk me through the steps?
    Thanks!!

    I've TRIED to use Media Manager to recompress the media to HDV 1080i60 and delete >the unused portions of the clips...
    In order to let this work with MM you must ONLY select the sequence in the browser.
    And DESELECT 'include masterclips outside selection'.
    (optional you can select to have handles (=extra length) of your clips.
    If you one of those wrong you are asking MM to recompress all your footage.
    Rienk

  • Problem when working with multiple sequences

    Dears,
    In order to make life easier (I am currently working on a rather long project), I work with multiple sequences, one per chapter.
    My problem: I named one sequence "assembly sequences" in order to add the various sequences. I dropped the sequence no 1, then no 2. All works fine, beside that when playing the sequence no 2, I see two black lines on top and bottom of the screen for the all length of the sequence. Which is not the case when I click on the sequence itself and play it independently.
    Any idea how to solve this ?
    Thanks
    Nic

    Thanks, what happened is that :
    1st sequence is like this : Frame size 720x576 pixels, video rate 25fps, Compressor DV-Pal. And I think it is the one appropriate for me and my country.
    2nd sequence is like this : Frame size 720x480 pixels,
    video rate 29.97 fps, Compressor DV-DVPRO-NTSC.
    I think I should change the second sequence setting, but can I do it after all the work I have done, and continue making a 3rd, 4th and so on ?
    Tx for your precious help,
    Nicolas

  • Fixed length XSD - values right bounded

    Hi
    I have designed a BPEL process to write a fixed length file in to a folder. I have associated an XSD to the output file adapter. my output contents are written in fixed length but all the fields are right bounded, For example let us take the field width of VINNumber is 17 , if my input vinnumber width is 15 then the Vinnumber starts with 3 rd column instead of 1st column. Can you please advice me where to change in the XSD.
    MY XSD
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://wwlnamespace.com" xmlns:tns="http://wwlnamespace.com" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" nxsd:encoding="US-ASCII" nxsd:headerLines="0" nxsd:headerLinesTerminatedBy=”${eol}” nxsd:stream="chars" nxsd:version="NXSD">
              <xsd:element name="CarloInfo" >
              <xsd:complexType>
              <xsd:sequence>
                   <xsd:element name="CarloDetails" maxOccurs="unbounded"
    nxsd:style=”array” nxsd:cellSeparatedBy=”${eol}”>
                             <xsd:complexType>
                                  <xsd:sequence>
                                       <xsd:element name="VINNumber" type="xsd:string" nxsd:style="fixedLength" nxsd:length="17"/>
                                       <xsd:element name="PFDCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5"/>
                                       <xsd:element name="SEOrderNumber" type="xsd:string" nxsd:style="fixedLength" nxsd:length="10"/>
                                       <xsd:element name="ETAatZeebrugge" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
                                       <xsd:element name="WeightKGM" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6"/>
                                       <xsd:element name="CubicMeters" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5"/>
                                       <xsd:element name="BLNumber" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
                                       <xsd:element name="VesselName" type="xsd:string" nxsd:style="fixedLength" nxsd:length="20"/>
                                       <xsd:element name="PositiononTerminal" type="xsd:string" nxsd:style="fixedLength" nxsd:length="3"/>
                                  </xsd:sequence>
                             </xsd:complexType>
                        </xsd:element>
                             </xsd:sequence>
                             </xsd:complexType>
                        </xsd:element>
    </xsd:schema>
    Thanks in advance

    Hi,
    I have the same problem. Did you find a solution for the "right bound" values?
    I don't think that a transformation is the solution, because I get my data as the result of a transformation. This data is NOT in fixed length format yet. The file adapter itself in "fixed length" mode takes my data and adds the required number of spaces. That's great, BUT: it adds the spaces BEFORE my data, not after it.
    Sample (. means space):
    I get:
    .....................Dirk.............Mueller
    ...................Ramona.............Mueller
    Instead of:
    Dirk.....................Mueller.............
    Ramona...................Mueller.............
    Any suggestions, if this can be configured in file adapter?
    Torsten

  • Export Setting: how to make "entire sequence" as default?

    Hi all,
    One of my largest pet peeves with Premiere Pro/Adobe Media Encoder is that it defaults to the source range of "work area". I never want to do this. I want to export the full sequence always. However Premiere Pro seems to like to change the work area slider in the timeline if I move stuff around a lot, and since I've never had to worry about this in Final Cut Pro, I'm not used to always checking to see if the work area slider is the same length as my sequence. Thus there's been many a time where my videos have exported with a big chunk of black at the end of some videos.
    Is there a way to make the default source range be "entire sequence" rather than "work area"?
    Thanks,
    William

    Nope: Adobe Feature Request/Bug Report Form
    In the meantime, zoom out full in your sequence (hit the '\' key) and double-click in the time ruler. That will set the WAB to the full duration of the sequence, so it won't matter if you're set to Work Area or Entire Sequence in the Export Settings.
    For what it's worth, I've also requested that the source range be able to be saved into encoding presets; that would help this situation somewhat, as well.

  • Sequence replicator bug : when source image has "colorize"

    I ran into this funky thing today. Easy to repeat:
    1: take any simple image as your source - I imported a small image from photoshop (a PNG).
    2: Colorize it
    3: Replicate it.
    4: Add a sequence replicator - I added a scale sequence from 0% TO 100%.
    Replicator only colorizes the image for a few frames as it scales up, then it drops the filter completely.
    Anyone else getting this? I'll use the "feedback" page to report this.

    Nope. Works fine for me. But let me ask you this:
    Does your colorize filter last as long as the sequence replicator? If you have a short image, say 3 seconds long with a 3 sec long colorize filter on it and you replicate that, the color will be obeyed in the replicator for only as long as the filter exists on the original image.
    Therefore, if you want the color to remain for the length of the sequence replicator, then you have to lengthen the colorize filter to the same length as the sequence replicator.
    andy

  • Replace asset for a Premiere dynamic linked sequence

    I linked Premiere sequences via Dynamic Link to Encore. I had trouble with Encore freezing during transcode. Therfore to make it quick I rendered the sequences to MPEG-2 from Premiere using AME. This worked. I tried to replace the assets, but when I click right on an imported sequence Replace Asset is greyed out. Even it is a sequence from Premiere it is an asset and should be able to be replaced. I can't remove the sequence asset from the timeline in Encore, because all the chapter markers and links are set already. It is an instructional DVD of 4 hours with 120 chapter markers and 12 menus. Nothing you want to do over again.
    I tried to use Locate Transcode instead. My thought is that I can point to the transcoded MPEG-2 files to have Encore "replace" the asset. I got an error that the length of the sequence and the transode file don't match. I don't know why this is since it is the same timeline that was just rendered from Premiere.
    Does anybody has any insight or know a proper way to replace a Dynamic Linked Sequence with the rendered MPEG-2 file?
    Marcus

    Hi Stan,
    apparently a DL sequence is not treated as a regular asset, which is not understandable. There should be a possibility to replace a DL sequence with another clip. Revert to original doesn't work either. In my case I wanted to replace the DL sequence with the encoded files. I encoded the files directly from Premiere due to the AME queue not using GPU problem. As a workaround for my case I found the option "Locate transcoded file". I could point to the transcoded files and was able to burn the disc.
    Marcus

  • Unkown length in custom CharSequence implementation

    I'm trying to write a custom implementation of the CharSequence interface for use with the Regular Expression package java.util.regex. This implementation adapts a generic Reader object to the CharSequence interface, so I can read directly from the Reader and do reg exp matching.
    However, the CharSequence interface defines the public int length() method and there is no sensible value to return in my implementation, since I have no reasonable way of knowing how many characters a given Reader may contain.
    For efficiency reasons, I don't want to read the entire contents of the Reader into a StringBuffer (Reader could be backed by a 4MB file). I just want the reg exp matcher to read a ways into the Reader, then stop.
    Is there a way to get around this? This seems like a great deficiency in the CharSequence interface, assuming the length of the sequence should ALWAYS be known.
    Thanks,
    Zach Cox
    [email protected]

    If you do not know the length a CharacterItterator
    implementation is perhaps more suited than
    CharSequence?Which CharacterIterator? java.text.CharacterIterator isn't appropriate for reg exp. org.apache.regexp.CharacterIterator is great - its public boolean isEnd(int pos) method is good because the length of the character sequence isn't required to be known ahead of time.
    However, this requires using the Jakarta RegExp package when I'd much rather use JDK 1.4.1 classes and not have to ship another jar with my distribution.
    The CharSequence method public int length() may offer the reg exp matching algorithm some efficiency in that in knows how many chars it has to process, but IMHO they should have built in support for unknown sequence lengths (i.e. return -1 if you don't know the length).

  • Batch Capture from a FCP sequence

    When I select a sequence for batch capture with no handles, the system reports much more media to be captured than the total running time of the clips. Why should this be?
    Alternatively, suppose I wish to import an off-line sequence at a higher resolution, how should I re-capture just the media+handles that's used in my sequence?

    Create a new sequence and delete all the audio in the timeline. This should reduce the amount of media needing to recapture. It still may show a time larger than the length of your sequence. Even with out handles. Not sure why.
    Also, make sure all the clips have timecode and a reel number. It won't deleted the unused portions if it doesn't have it.

  • Batch Capture from Offline Sequence

    I have some older projects that I need to revisit and since the original capture files are no longer around I told FCP to batch capture the sequence from the original media (actually AVCHD files on folders). However it only brought in about 80% of the footage leaving the remaining 20% offline.
    I went to the browser and manually brought those files in - so I managed to recover the sequence in the end, but is there anything I could have done wrong to make it only bring in 'some' rather than 'all' the offline media for a given sequence?

    Create a new sequence and delete all the audio in the timeline. This should reduce the amount of media needing to recapture. It still may show a time larger than the length of your sequence. Even with out handles. Not sure why.
    Also, make sure all the clips have timecode and a reel number. It won't deleted the unused portions if it doesn't have it.

  • Random sequences

    How would i go about creating random sequences of with user supplied number and length, i am stuck as far as i can get is this:
    /** creates random sequences */
    public void randomSequence(int number, int length)
        for(int i = 0; i < number; i++)// number of sequences to be made
            for(int j = 0; i < length; j++){ // length of those sequences
                if(numSeq >= seqArray.length){
                    seqArray = doubleArray();
                seqArray[i] //here is where i get stuck!!!????
       }

    My personal crusade against really bad "random"
    numbers...Even your numbers are still not great ..., and there
    is no reason at all to use "SecureRandom" if you don't
    really care about the randomness you get. (i.e. it's
    not for any statistical, cryptographical purpose ...)
    And if you want "really" random numbers, have a look
    at
    http://www.random.org
    http://www.fourmilab.com/hotbits/
    and http://www.randomnumbers.info/
    and if you feel like it
    http://superhappycool.blogspot.com/2004/10/article-real
    y-random-numbers.html
    :)I know about (and use) a few of those, and others. It's not that util.Random is horrendous, it's just worse than should be acceptable ( http://www.alife.co.uk/nonrandom/ ). Also, you'll note that I said "at the very least use... [SecureRandom]."
    ~Cheers

Maybe you are looking for

  • Runtime error when i try to execute this program

    I get a runtime error when i run this file using appletviewer. Please help me in getting out of this problem. The runtime errror is: C:\prashanth>appletviewer HelloMedia.java java.lang.NoClassDefFoundError: javax/media/ControllerListener at java.lang

  • How to hide a portlet in a portal application

    Hi, there, I want to implement a scenario that restrict specific group of users to access specific portlets based on the users' role. For example, suppose that some portlets labelled A1, A2, B1, B2 and B3. Group A users can only access A1 and A2; whe

  • Arabic description displayed in reverse format

    DEAR ALL In my smart output ARABIC DESCRIPTION displayed in reverse format that  means it displays in LTR format but  i need it in RTL format. If i reverse the description numbers goes to reverse.How i display it in RTL format. Can any body help on t

  • I'm trying to restore my ipad 2 ios 7.1 still getting error (9)

    i'm using windows 7 and i have leatest version of itunes and my ipad 2 now in recovery mode and when i restore it to ios 7.1 i getting error (9)

  • The latest version of itunes (8.0) will not burn cds for me

    Ive been able to burn a few but the majority of the time Im just wasting cds. I click burn disc, insert blank disc, the mac then checks playlist. Then it says its writing playlist, but nothing happens. It sounds like the mac is working on it and when