Very general doc class question

Hi
Just wondering how you decide what functions should be in a doc class, and what ones should have their own class?  Are there any rules of thumb, or specific rules?
Thanks

there's no one answer to that and there's no simple answer to that.  you're actually asking a fairly profound question that would probably generate varying answers from knowledgeable people.
i doubt you really want this but here's a start if you're interested in oop class architecture design:  http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Conc ep#Architecture

Similar Messages

  • Doc Class question...

    I'm getting extremely slow publishing in CS5 on win 7 - 64 bit. I've worked with the engineering team and no luck as to why. Then I was wondering if the structure of my files is causing the slow down? Would the fact that I seem to put most of my class and references in the DocClass cause a slow publish? I have a few files that it takes over 30 seconds on. I probably have one of the fastest computers in the world.

    No.
    This is crazy frustrating. For the last three versions of Flash my performance has been extremely poor at best. I don't have such a nice computer to just be frustrated with Flash performace. It shouldn't take me more than two seconds to publish anything, let alone 30 or more.
    CS3 was so bad that I had to work directly with the engineers to get it to function properly, only crash 30 times a day. They had never seen 64 bit before.
    No it's like I'm the only computer in the world with a slow preview on every project. It seems like their hardware allowance numbers are so low that I default to the lowest value. It also seems like during publish only one of my 12 cores is being used.

  • General Valuation Class & AAR at TM04 dimmed after posting to TBB1

    Hi.
    I have a problem regarding data that had been posted to TBB1.
    All data that had been posted to TBB1 that need to do Roll Over (TM04) currently shows a dimmed field for General Valuation Class and Account Assignment Reference (AAR).
    How to undimmed this field since user need to do many Roll Over for related data.
    This problem occurs only at DEV client. The field is editable at QAS client.
    Is there any transaction or configuration that i need to change?
    Thank you.

    Hi,
    ...oh, that's a very old version
    I only have EhP4 systems available to check this issue.
    Do you know, if you have ANY field-selection customized for Money-Market deals?
    In case there is NO difference between your 2 systems (which might actually be not the case) and NO field-selection applied, I'd rather open an OSS-message.
    Regards,
    Lorenz

  • Very general SAP Info

    Hi All,
    Can ne1 provide me a very general info abot SAP. I mean, how does SAP if employed in a firm, would help in its business.
    Thanks,
    Mohit Goel.

    Implementation of SAP has Advantages and Disadvantages that are listed below.
    Advantages:
    Integration
    Integration can be the highest benefit of them all. The only real project aim for implementing ERP is reducing data redudancy and redudant data entry. If this is set as a goal, to automate inventory posting to G/L, then it might be a successful project. Those companies where integration is not so important or even dangerous, tend to have a hard time with ERP. ERP does not improve the individual efficiency of users, so if they expect it, it will be a big disappointment. ERP improves the cooperation of users.
    Efficiency
    Generally, ERP software focuses on integration and tend to not care about the daily needs of people. I think individual efficiency can suffer by implementing ERP. the big question with ERP is whether the benefit of integration and cooperation can make up for the loss in personal efficiency or not.
    Cost reduction
    It reduces cost only if the company took accounting and reporting seriously even before implementation and had put a lot of manual effort in it. If they didn't care about it, if they just did some simple accounting to fill mandatory statements and if internal reporting did not exists of has not been fincancially-oriented, then no cost is reduced.
    Less personnel
    Same as above. Less reporting or accounting personnel, but more sales assistants etc.
    Accuracy
    No. People are accurate, not software. What ERP does is makes the lives of inaccurate people or organization a complete hell and maybe forces them to be accurate (which means hiring more people or distributing work better), or it falls.
    Disadvantages:
    Expensive
    This entails software, hardware, implementation, consultants, training, etc. Or you can hire a programmer or two as an employee and only buy business consulting from an outside source, do all customization and end-user training inside. That can be cost-effective.
    Not very flexible
    It depends. SAP can be configured to almost anything. In Navision one can develop almost anything in days. Other software may not be flexible.
    Check the link below:
    http://www.sap.com/ecosystem/customers/customersuccess/index.epx
    Reward Points if useful.
    Sravan.

  • Class Question...

    I've always wrote all my code into the .fla and now I'm trying to use classes more. I have my file loading the document class. Then the document class imports two additional classes. In my constructor of the document class I am creating a new instance of both additional classes. Here is my doc class:
    // start package
    package com{
    // import classes
    import flash.display.MovieClip;
    import com.CheckoutRemoting;
    import com.CheckoutMain;
    // start class
    public class CheckoutDocClass extends MovieClip {
      // initialize classes
      public var remoting_class:CheckoutRemoting;
      public var main_class:CheckoutMain;
      //constructor
      public function CheckoutDocClass() {
       remoting_class = new CheckoutRemoting();
       main_class = new CheckoutMain();
    Now inside of the other two classes I should be able to just use main_class.myFunc(); Correct? Why isn't is working? How can I interact classes? If I create a new instance to the class I want to access then I get a stack over flow error.
    Inside remoting class in the constructor my code;
    main_class = new CheckoutMain();
    main_class.myFunc();
    Thanks, in advance...
    C

    So if my document class imports class_a and class_b then both class_
    a and class_b need to reference each other in order to use methods in each other? why doesn't it work that the class that impor
    ted them can just create a reference var and you can use that? why would I be getting a stack overflow error when I'm trying to make class_b reference a function in class_a?
    C

  • Abstract classes question

    Hi everybody,
    I have a base class called BookObject that is abstract; it has a constructor and accessors/mutators for its data members, then some abstract methods. The classes that extend it can have, as a data structure, either a list or a map, depending on what's needed. I'd like to, based on the data structure, be able to inherit certain abstract methods, but not others -- that is, the map abstract methods I wrote for when the data structure is a map, or the list methods for when the data structure is a list. If I inherit everything, it results in multiple methods with empty bodies that I don't need. Does anyone know if there is such a thing as inheriting only specified abstract methods, based on a criterion in the class? If anyone could give me any information on this, I'd appreciate it.
    Thanks,
    Jezzica85

    jezzica85 wrote:
    No, BookObject is just sort of a general wrapper class. It has subclasses like BookCharacter, BookSetting, and BookAction, for different parts of the book.Regardless, "BookObject" doesn't really tell you anything, except that it has something to do with books, and the name "Book" would tell you just as much.
    I get the impression that you might be making a single hierarchy where you don't really need it. You don't have to make every class in your project extend a particular single class in your project.
    Having subclasses called BookCharacter, BookSetting, and BookAction, doesn't necessarily make BookObject a wrapper class. What you said is a non sequiter. What exactly does BookObject wrap?
    Also I'd argue that if everything here is about books or a book, then having the word "Book" in every name doesn't help you either. Instead, having a package called "book" might be more useful, with the class names being more specific.
    From the names you've chosen, I'm going to guess that a more reasonable design and naming might have an interface called Analysis, with implementing classes named, say, BookAnalysis, CharacterAnalysis, SettingAnalysis, and ActionAnalysis. BookAnalysis would contain collections of the other analyses, and the word "Book" in the title would suggest that it's an analysis of the whole book, as opposed to elements of the book, and in fact would be one of the few objects with "Book" in its name. It wouldn't be a superclass of the other Analysis implementations -- there's no need for that.

  • Can anyone help me change fonts and size on my page? I don't understand the class questions?

    Can anyone help me change fonts and size on my page? I don't understand the class questions? All I want to do is change the font and size of a table or div.
    http://www.allgearinc.com/AG12SSWL-Swift.htm -One problem page

    If you want to change the fonts of the entire page then this code will do the trick:
    body {
        font-size: 16pt;
        color: silver;
         font-family: whatever, goes, here;
    If you want to change the fonts of ALL tables on a page then the code is something like this:
    table {
        font-size: 20pt;
        font-family: "Courier New", Courier, monospace;
        font-style: italic;
        font-weight: bold;
    what exactly do you want to change?  Can you be a bit specific so that Ben or Ken can give you the exact code and tell you about the short-hand method to write the code in one line.
    Have you bought a book on CSS yet?  If not, it is a good idea to get one as a reference.  Eric Meyer writes good books on CSS.

  • First general valuation class/valuation class

    in spro, we assign general valuation group (GVC group) 3 to our product type/transaction type, but I have three general valuation class assigned to GVC group 3, when I create a deal, the general valuation class is greyed out and it is the first general val class 5 in the GVC group, so does it mean it will always get first general valuation class in the GVC group
    for general valuation class 5, we have several valuation class, may I know which valuation class is used for my deal, how can i check?

    There is no such configuration, as i mentioned earlier.
    It is hardcoded, predifined for combination of product type and transaction.
    Try to create 2 deals:
    1. Prod. type 51a deposit, transaction 100 Investment.
    2. Prod. type 51a deposit, transaction 200 Borrowing
    Try to think yourself about the result - if you invest in something - is it your asset or liability? and if you borrow something - is it your asset or liability?
    compare your result with the settings inside your deal - Envinroment -> Position indicator.
    Also think about this: if your deal is investment - this is your asset. so how can you classify it as liability. That's why there is no such configuration.

  • Sorry - very general question

    I have been playing with flash for a while on a Mac but I
    have been dissatisfied. It is a pre-intel version and 1) it is very
    slow, 2) it does not support Soundforge, which I hear is quite
    popular and easy to use. Anyway, I'd like to get a PC but I'm not
    sure whether I need a standard computer or a suped up version with
    lots of memory, graphics capability, etc. Basically the sites I've
    seen have divided computers into those suitable for standard office
    tasks and net surfing and those suited for "hard core gaming." I am
    basically planning to use the computer just for flash animation and
    sound clips. Is a standard PC (that exceeds Flash's minimum
    requirements) going to do it for me? Sorry for the general
    question. Thanks.

    First of all, no need for the apology, there are no stupid
    (or general) questions.
    Second of all: sorry to all Mac fans, but PCs are the way to
    go. After all, you get to choose what company makes your computer.
    So you can get either the high-end model from HP or Gateway, or get
    something a little more affordable from eMachines or Compaq. With
    the Mac, you can only choose, well, a Mac.
    While computer shopping, look for the following features:
    (This is the BARE minimum of what your expectations should
    be)
    Windows XP Home Edition
    AMD Athlon+ 2.1 GHz Processor
    800x600x16-bit or better screen
    32 MB Video RAM (For the occasional game here and there)
    512+ MB System RAM
    Sound Card, Speakers
    If you get a computer with Windows Vista (which you probably
    will), turn off the Vista visual styles, use Windows Standard.
    (Flash has a BIG problem concerning Windows Vista visual styles,
    which is the problem I'm having now...see first page of "Flash
    General Discussions" for my post, please help! Thank you.)

  • RAID - a very general question concerning stability

    Hi everyone,
    I've read quite a bit about RAID and the various types of arrays one may set up. Most posts give the following info:
    ••• RAID 0, while fast, is risky because if one drive dies, everything is lost; good backup routines is essential in this scenario (unless it is only used for scratch disk purposes).
    ••• RAID 1, and other types of mirrored arrays, are safer because of the built-in duplication of the data on one or more disks.
    ••• Mirrored arrays, as a general rule, should not be used for backup purposes because, while they duplicate data, they don't replace good backup routines and are therefore susceptible to human error, fires, floods, theft, and general calamity.
    But there is one question which I cannot seem to find an answer to:
    As I understand it, the stability of any particular array depends on the stability of the disks used. I have used quite a lot of harddrives in my years but have never had a drive fail on me. Perhaps I've been lucky. Then again, I've never hooked drives up using RAID.
    My question is therefore:
    Using harddrives in any type of RAID setup, will that make them more prone to failure?
    Is it a matter of statistical risk? In other words, each drive has a certain, theoretical Mean Time Between Failure and the more drives you have the greater the theoretical MTBF.
    Or has it do to with the error handling of the hard-/software controller? I guess it is could be relevant whether you use Enterprise grade drives or not because those, as I understand it, skip errors more easily than non-Enterprise drives and leave the rebuilding of the broken bit up to the controller (of course this is not a RAID 0 scenario).
    Basically, do drives become more susceptible to errors because they've been hooked up in a RAID array?
    Any thoughts would be very much appreciated.
    /pullman

    pullman,
    No, drives do not become more susceptible to failure as a result of being included in an array.
    I'm not sure I totally agree about mirrored arrays not being good for backup purposes. In this regard, one must make the distinction between using a RAID array to make a backup, versus using the array to store a backup. In the first case, the data is stored on the array and the built-in redundancy stands in place of a de facto backup strategy. In the second, the backup strategy includes the use of a RAIDed volume to further safeguard the already-redundant backup (which is made by other means).
    In other words, using an external mirrored RAID array to store ones backups seems to me to be an excellent solution. Plus, one can add additional drives to the array, to further increase the redundancy in the system. In a mirrored array, the risk of drive failure is removed from the equation.
    However, the risk of a software, or logical failure still remains. By this, I mean potential disk errors. I have suffered far more disk errors than I have actual drive failures. A mirrored RAID array only contains one logical volume, and this volume is just as susceptible to directory failure as any other. However, backup storage on a single mirrored RAID array is no different in this regard as storing it on a single, dedicated drive.
    So, we get back to the age-old question: Is a single backup enough? Well, it really comes down to the critical nature of the data being backed up.
    Scott

  • VERY general question

    This is probably a DNS101 question for most of you, but my problem is this: 
    I have a computer on my (work) network, that has IP address name resolution working, but I can't seem to find a corresponding A (or ptr record) for it in any of my 3 DNS servers.  If I ping the computername, it comes back with a (resolved) IP address,
    but no reply.  I can RDP to the computer by computername or IP, so I'm guessing ICMP packets are being blocked to it, but my question is....HOW is the network finding the IP, if I can't find a DNS record for it?  I know you can alter the hosts file
    locally and resolve addresses, but I'm pretty sure that's not the answer, because there are no entries on my hosts file on my client.  Thanks in advance.

    AHA Robert!
    Sorry to all the ninjas who saw my question and thought "well, doy".  I came to all this late to the game, after the common usage of WINS and NetBIOS resolution.  This computer is in an industrial environment that uses NWlink over
    NetBIOS, so I'm pretty sure that was the answer.  This has been a good learning experience, thanks all for your kind help.

  • Signature printing (very general question)

    Okay not really an InDesign question, but I know a lot of you know more about printing than I do. I'm strictly on the design end of things:
    I always hear about 8-page and 16-page signatures, yet I know as long as my documents are in multiples of 4 I have no trouble getting them printed. What does the printer do when I send him a 76-page magazine? Is it more difficult to print than an 80-page one? I don't know that much about the actual printing though I'm planning to tour a printing plant next week. :-)
    Just curious.
    Thanks, Phyllis

    It's best to talk to the printer because it depends upon the press or presses he is using. It is the size of the press that determines the size of the signatures.
    The printer could print four 16 page signatures on one press and three 4 page signatures on another. He could print 80 pages and throw out the waste. He could move the job to a smaller press. His decisions will be based on time and cost. And that will depend upon the size of the press run, the stock, at any number of things. So back to the top, talk to the printer. (And bear in mind that not all printers are created equal. Some are set up for doing odd jobs, and short runs, some aren't.)

  • ... Very general questions

    Hi Everyone,
    I am a novice/intermediate web designer with experience in
    Dreamweaver, but none in Contribute. I have been given an
    assignment to build a website for a company, but they would like
    control over editing its main content.
    How do I define the area where they can edit? How do I give
    them the authority to do so? And what do they need to possess to
    edit? (they don't actually need to have contribute too, do they?)
    Thanks for all your help.
    Tara

    as a default contribute has 3 user roles for you to use:
    1.administrator
    2.Publisher
    3.Writer
    the administrator will be the one setting up the user roles
    and permissions
    like which page they can edit or who can edit thisparticular
    page for security purposes of the site= )
    when you download a trial it comes with a manual i suggest
    that you read thru deploying contribute or go thru the help
    files,that will get you running in no time=)

  • Inner Class Question

    My question pertains to the code at the bottom of this post.
    I don't understand why the compiler doesn't give an error for the line below. Why would it let you refer to something inside the class (in this case I'm referring to ClassWithInnerClass.MyInnerClass) unless it were static?
    ClassWithInnerClass.MyInnerClass mic = cwic.retMyInnerClass();To illustrate why I'm asking, I created 2 ints ("regularInt" and "staticInt") inside class "ClassWithInnerClass". The compiler let me set the value of "staticInt" from within main whereas it wouldn't let me do so w/ "regularInt" (which is why I commented that line out). Don't get me wrong though - I understand the reasons why the compiler behaves as it does for "regularInt" and "staticInt". I understand that a static variable can be accessed without instantiating a class (and that there's only 1 created no matter how many classes are instantiated). I also understand that, to access a non-static variable, you need to instantiate a class. My question arises only because of trying to extend that logic to MyInnerClass.
    I can already take a guess that the answer is going to be something like, "the reason it works this way is because class 'MyInnerClass' is just a declaration NOT a definiton". I guess I just want confirmation of this and, if possible, some reasoning behind this logic.
    HERE'S THE CODE...
    class CreateInnerClasses {
         public static void main (String args[]) {
              ClassWithInnerClass cwic = new ClassWithInnerClass();
              ClassWithInnerClass.MyInnerClass mic = cwic.retMyInnerClass();
              //ClassWithInnerClass.regularInt = 5;
              ClassWithInnerClass.staticInt = 10;
              mic.printIt();
    class ClassWithInnerClass {
         public int regularInt ;
         static public int staticInt;
         class MyInnerClass {
              void printIt() {
                   System.out.println("Inside ClassWithInnerClass.myInnerClass");
         MyInnerClass retMyInnerClass () {
              return new MyInnerClass();

    The line    ClassWithInnerClass.MyInnerClass mic = cwic.retMyInnerClass();is accepted because the name of the inner class is ClassWithInnerClass.MyInnerClass. This has nothing to do with accessing fields even though the syntax is similar.
    On the other hand, the line    SomeClassWithAnInnerClass.InnerClass ic = new SomeClassWithAnInnerClass.InnerClass();is not accepted because the nested class SomeClassWithAnInnerClass.InnerClass is not static: you must have an instance of the outer class available. The correct syntax for calling the constructor of the inner class would be    Outer.Inner instance = outerInstance.new Inner();In this case you could write:    ClassWithInnerClass.MyInnerClass mic =  new SomeClassWithAnInnerClass() . new InnerClass();
        // OR:
        ClassWithInnerClass.MyInnerClass mic =  cwic . new InnerClass();The Java tutorial has a pretty good explanation on nested classes:
    http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html
    http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html

  • Where is the getString() implementation for RS and Object class question

    Dear all,
    I had these two questions ringing since a long time.
    1)ResultSet is an interface.
    In my jdbc code I have generally written rs.getString() and rs.getInt etc.. without giving a second thought as to where exactly is this getter implemented !
    I have RTF API .. without too much help.
    Could some one kindly explain Where is the implementation of the getString method ?
    2) Could you please tell why the Wait() Notify() and NotifyAll methods have been implemented in the Object class ? What was the need to define em in the Object class ?
    Thanks in advance for your time spent on this.
    Rgds

    Sarvananda wrote:
    In the MySQL driver for example it's implemented in com.mysql.jdbc.ResultSet Right. Now it makes sense to me. Every single db that gives me a driver will have their specific implementation for the interface methods of ResultSet.
    >
    why do you need that?
    ..Thats a design decision
    One of my friends asked me this and I was caught unawares. Any ideas on what factors could have made this design decision ?
    Rgds
    >
    In the MySQL driver for example it's implemented in com.mysql.jdbc.ResultSet Right. Now it makes sense to me. Every single db that gives me a driver will have their specific implementation for the interface methods of ResultSet.
    >
    why do you need that?
    ..Thats a design decision
    One of my friends asked me this and I was caught unawares. Any ideas on what factors could have made this design decision ?
    A desire to not have to couple your code to a particular database and JDBC driver. It's a classic example of the abstract factory pattern

Maybe you are looking for