Calculating Fan in / Fan out of a metrics project

Hey I am in the process of a coding a OOD metrics project. I am 90 percent done I just need a few more metric measurements to add to it, and two of the hard ones are fan in and fan out.
The project consists of a GUI which allows opening of multiple files at a time, so it gets all of the java files in a project then sends each file to the parser. The class parser gets the class information and stores the class name, methods[], attributes[], etc. The method parser parses out the method header into returntype, visibility, name, static?, final?, etc and also saves the code inside of the method block to calculate mccabes number. Then the attribute parser just parses an attribute line into the datatype, visibility, and name. I am just stumped as how to calculate the Fan in/ out of a member function...has anyone out there done something similar? If you need to see some of my code just post that you want me to paste some of it.

Fan-out is a count of the entities the current entity touches (calls), fan-in is the a count of the entities that touch (call) the current entity. Conventionally the entity is a function, or module. In Java these could be methods, classes and packages.
However I don't think you could create a meaningful fan-in/out metric for java unless you can answer two questions. 1) How could polymorphic classes be counted and 2) How should factory methods be counted.
I don't have good answers to either question but it would probably a good topic to explore.

Similar Messages

  • How to create fan-out pattern solution in alsb (osb)

    Hello guys,
    I'm trying to create a fan-out pattern solution in ALSB in which I have one proxy service for incoming messages and two outbound business services. All messages are to be forwarded to both business services simultaneous but independent from each other, so whenever business service 1 fails messages are still delivered to business service 2. Like in the following situation:
    messages ---> proxy service ---> routing table:
                                       all messages  ---->  business service 1
                                       all messages  ---->  business service 2However, when I am trying to use the routing table to define the routing, I am not able to route messages to both business services. In the ALSB console I am obliged to define an IF..THEN..ELSE routing rules. IF condition THEN call BS1 ELSE call BS2.
    Can anyone give me a hint how to solve this problem, pls?
    Thanks in advance,
    Harm

    Thanks for the swift reply.
    Can you please elaborate on the expression to use in solution 1? My first solution was similar except I used a routing table without a pipe line instead of a publish table. The cases in the publish table look similar to the cases in a routing table. The difficulty I'm having is that I don't have/want(?) to switch between cases in order to choose the end-point as all end-points must be invoked in each case.
    This is the expression I'm using in the routing/publish table:
    Publish Table ( boolean($body/mynamespace:myrootnode) )
       Case = true()
       Publish to BS1 invoking operation bladibla
       Case = true()
       Publish to BS2 invoking operation tralalaIn words, if the incoming message has a body then route to BS1 and BS2. But this "solution" only invokes BS1, never BS2.
    For the second solution, suppose the first service callout hits an error (time-out, remote server down, network failure, etc), is the second service callout still being invoked succesfully or does the whole pipe line stack fail?
    Thanks in advance.
    Regards,
    Harm

  • About  Function FAN IN - FAN OUT

    Hi All,
    In lot of workflow item exemple with business event activity we see a new function name : FAN IN and FAN OUT.
    Have you some technical informations about this functions.
    Regards.

    HI
    I have made little bit changes in ur code. try this
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    v_Min_sal jobs.salary%type=0;---- Variable declaration
    begin
    SELECT min_salary INTO v_ min_sal
    FROM jobs
    where job_id = i_job_id;
    RETURN v_Min_sal;
    end get_minimum_salary;
    Regards
    Srikkanth.M

  • Fan Out Ratio with 674

    I am working on a WAAS/WAFS solution for a customer with 100-150 remote sites. All sites are single homed with 1.5Mbps T1 connections to an MPLS WAN. The customer will be using WCCPv2 for redirection to the WAE.
    The current plan is to provide dual 674 at each of 2 data centers. I have a couple questions with this design.
    1. For redundancy purposes, can a WAE be a member of more than one core cluster. Could the remote edge device have one edge to core cluster at DC1 and one core-to-edge connection to DC2?
    2. How many fan out peers for DRE does the 674 support? How many CIFS fan out peers does it support? Is a CIFS peer or DRE peer the same from a fan out planning ratio?
    3. Is there an updated WAFS/WAAS sizing tool out yet that reflects the capacity limits of the 674 and 7371 models?
    Thanks in advance
    Mike Louis
    CCIE 17082

    Mike,
    1. A WAE can be members of multiple core clusters. In the 4.0.x code, they will have 4050 connections to all the cores they are paired with.
    2. The 674-4 is rated 100 peers, the 674-8 is rated 200 peers. This platform is being positioned for the virtual blade features in 4.1 and maintaining roughly the same performance as the 612.
    3. I have seen this internally, however I would talk to your Cisco Sales team to get the official external version.
    Thanks,
    Dan

  • How can I deploy only one package out of a big project?

    Does any one know how can I only deploy one package out of a big project?
    We have a project which includes about 12 differenct packages. Is there a way in Jdeveloper for me to create a deploy profile to only deploy one package to a *.jar file?
    Do I have to re-create a new project ( that's what I am doing currently) simply for deployment purpose?
    By the way, click and pick class from more than 100 classes is too much of work. In addition, you don't really know exactly which class you are picking if two classes (in different packages) have the same name.
    Thanks a lot.

    Rename your LCA file extention into .ZIP
    Open the ZIP file in any of the compressing utility (e.g. WinZip, WinRar etc.)
    Extract the desired process and deploy it manually to your server.
    Nith

  • Upon entering a LV project file into VSS, all files in the project are left out. Only the project shell and settings enter VSS. Any idea why?

    Upon entering a LV project file into VSS, all files in the project are left out. Only the project shell and settings enter VSS. Any idea why?
    Solved!
    Go to Solution.

    Chuck72352,
    Hello! It is my understanding that you need to add the individual files to the Source Code Control along with the .lvproj file.
    Here is a great deal of information on Source Code Control Practices in LabVIEW.
    Ben Sisney
    FlexRIO V&V Engineer
    National Instruments

  • I took out a clip from project window.

    I took out a clip from project window. I went back to the event window and when I played back it was like it skipped a frame.  the audio was fine but the vid was skipping every other frame.  any suggestions?
    imovie 11  OSX 10.8.1 imac 16 gigs ram

    Buying AppleCare, at this point, would be a waste of money. You voided your warranty when you replaced your optical drive with a hard drive. Only RAM and hard drive bay customer alterations will not affect your warrany.
    You could have, I suppose, kept the optical drive and if your computer ever needed Apple repair, have replaced the hard drive for the optical again before taking it in for service. A little bit underhanded, but some people have done it.
    You're pretty much just out of luck now...
    Sorry,
    Clinton

  • Sequence In-Out Duration in the Project Panel?

    Using Premiere Pro CC 2014.2, and wanting to view duration of in-out selections of multiple sequences in the Project panel before batch exporting via AME. The media duration display only shows full sequence length. Anybody have any ideas on how to view in-out duration in the project panel (I'm aware the duration shows up in the Program panel when a sequence is active).

    searching for metadata fields, it seems to have no in/out duration.  so might have to request for adobe to add it. Adobe - Feature Request/Bug Report Form
    i did notice that if i load the sequence from the project bin into the source monitor, then change the in and out points to match the same as in the timeline, it will change the "video duration" metadata column to reflect the in/out duration. its also possible just to change the "video in point" and "video out point" metadata values in the project bin to get the matching video duration, bypassing the need to load the sequence into the source monitor.  i also noticed when i export the sequence it will use the in/out on the timeline not the source monitor. this workaround adds extra steps, especially if changing the in/out points often.

  • I am trying to figure out how to save/share only a clip out of an entire project.

    I am trying to figure out how to save/share only a clip out of an entire project. I do not want to delete the rest of the timeline as I want to cut/copy out several smaller clips and save/share them as their own files.  I am working on a copy of my original video, and I know I can just bring the project timeline down repeatedly to isolate this clip by deleting all else, but feel there must surely be a simple way to do this.

    Sirole11
    What version of Premiere Elements are you using and on what computer operating system is it running?
    For now I will generalize the principles involved. If more details needed then, please supply the details of your situation and Timeline track placement.
    You would place the gray tabs of the WorkArea Bar to span just the area to be exported.
    The tabs are set...
    Move the Timeline Indicator to the start of the segment, hold down the Alt key of the computer main keyboard as you hit the left bracket key [
    then
    Move the Timeline Indicator to the end of the segment, hold down the Alt key of the computer main keyboard as you hit the right bracket key ]
    The critical step is to make sure that you have a check mark next to the "Share Work Area Bar Only" option in the export dialog (if the dialog has that option).
    Please review and remember that the answers are in the details.
    Thanks.
    ATR

  • Keeping my Set Ins & Outs when roundtriping Color Project back to FCP

    After rendering my color grades and sending the project back to FCP, I'm loosing my previously set Ins & Outs on the clips in my timeline. For instance, some of the clips in the timeline will have shifted, the timeline is still showing the correct amount of the clip, just the wrong portion of the clip? So I have to go through and Slip edit the clips back into the wright spot.
    Am I doing something wrong or is this common.
    My Workflow:
    1)Working on ProRes Files in FCP 6.0.5
    2)Set my in & out point on a clip
    3)edit into my timeline
    4)play with my speed and ramping of the clips & get thing dialed in
    5)Send To Color
    6)Color Grade all the clips in timeline
    7)Render Color (to original format)
    8)Then Send To FCP
    9)**This is where I'm finding that I the clips are all in the right order and have the right amount of time in the timeline, it's just showing the wrong portion of the clips. Not all of them, just some.
    Any Ideas

    rupeman wrote:
    Color w/ Time ReMaping Seems to work for me 98% of the time. Out of this 1min project with 13 clips all with special Time Remaping curves only 3 came back out of place.
    Ya, well - that doesn't scale well.
    The habit you build now you'll use on a 30 minute show. 98% will suddenly overwhelm you. Build good habits now and you'll never have to break them later (or have your client break your fingers as the drop-dead deadline fast approaches and you're tinkering with the slip tool).
    And yes, I've had my knuckles rapped a few times before I took this advice to heart.
    Good luck!
    - pi

  • Deception field in Project defination grade out after release of project

    Hi Experts,
    I am facing one issue in cProject that when I release the project , The description field in project definition becomes grade out, so not able to update the description field . I checked the field setting in global enhancements , it thy are fine.
    Could any one help me in this regard?

    Hi Shashank,
    Never project description gets greyed out after release of project.
    This normally happens if field control is activated for that particular field 'Description' with condition 'object is released' fulfilled with 'only display'.
    Regards,
    Ravi

  • Fan out of control

    The last couple of weeks I've had a series of problems with my Powerbook G4 12" computer. For a time I was almost 90% certain that the sound was my hard drive going mental and scaring me, since I have an exam I have to write.
    My computer has served as an unwanted alarm clock the last couple of weeks. I wake up and hear a loud, high pitch sound repeating itself. The first time I couldn't work out where it came from, but I soon realized that it was the Powerbook that was the cause of the problem.
    (I don't know how to explain the sound, but if you turn of your computer by holding down the powerbutton, the fan will make a similar sound, just imagine the same sound louder and constantly repeating itself like an alarm). The machine just freeze and I have to restart the computer by pressing the powerbutton).
    This troubled me for some time, but since it never happen when I am around (it always happen when I sleep and/or are somewhere else), I thought it would just pass. It didn't pass and today I called Apple and was told to go to the nearest Apple Center, so I did. I told him what the problem was and we discussed it a litte, I said I would come back if it happened again and that I would give him the computer as soon as I finished my exam.
    I came back home and turned my computer back on. I don't think I've ever been as frightened as I was then. The computer made a sound like it was going to blow up, or atleast that's what sprung to my mind. It was like someone was putting something in the fan making it struggle and it sounded like the fan was just going to blow up.
    The sound lasted for about 20 seconds (don't ask me why I didn't turn it off, I guess I was shocked) and then it disappeared.
    So where am I going with all this? Does anyone know what the problem could be? Should I turn my computer in to Apple and let them fix it, or should I assume that everything will fix itself.
    Sorry for the length, but I felt I had to explain as much as possible, and I'm sorry for my lack of english skills, english is not my primary language.
    (And while I'm asking, does anyone else have a bump over their CD-slot? I've had the bump since I got my computer August 2005 and two of my friends also have the same bump, but I also have two friends that don't have the same bump, and it doesn't look like a part of the design.)
    PowerBook G4 12"   Mac OS X (10.4.6)  

    Can that wire get disconnected while the Mini is sitting quietly on the table? I didnt lift it or anything.
    It would be highly unlikely...unless you had additional memory added. Like I said, it was the only other thing I could think of.
    Can I reconnect the wire myself, if that is indeed the problem, wont it brake the gaurantee?
    Just opening your Mini's case would not necessarily "break" your warranty, but breaking anything while doing so would not be covered. When it comes to warranty issues, it's always best to have Apple or an Apple-authorized shop do the repairs.
    And to my surprise and worry, it took about 10 mins for the Mini to startup and it was running extremely slow.
    From what you are describing, your Mini really needs to be looked at. I realize you're not excited by having to send it away for repairs, but since you have already done most of the troubleshooting steps (SMC reset, PRAM, etc.), it may be the only recourse you have left...before it really breaks.
    As a last ditch effort, you can try running the TechTool Deluxe battery of tests, that came with your AppleCare CD (if you have AppleCare, of course) to see if it discovers anything amiss.

  • Single 1.6 Fans out of control

    I've been searching for a solution to the noisy fans. I've tried resetting nvram, pram, setting defaults in open firmware mode, and even resetting the PMU (it's a pre-2004 model so there's no SMU).
    I'm running 10.3.9 with the latest firmware for the machine. The fans spin at full speed when I first power on the machine then the 4 case fans slow down but the hard drive fan continues at full throttle.
    I've tried setting the energy saver options and powering down the mac and pulling out the power cord.
    Are there any other suggestions out there?
    PowerMac G5 1.6 Ghz (Single)   Mac OS X (10.3.9)   Noisy Fans!

    Did you try to run Apple Hardware Test? That will tell you if it is a hardware problem.
    You mention that the fans around the hard drive are running at full blast. There could be a corrupt file on your HD, causing it to cycle more rapidly than it should, and thus generating more heat.
    I would try reinstalling Panther or upgrading to Tiger (I suppose now would be a good time to do so). Either way, you should do an erase and install, not an archive and install, so make sure that you backup any important files.
    If all of these solutions fail for you, take it into an Apple Store for diagnosis and possible fan replacement.
    Good Luck.

  • Fans out of control!

    I'm having problems with my imac 24"(late 2007) fans. The problem came out just after finishing reassembling the imac, when i was disassembling the lcd panel I removed by mistake the heat sensor placed on the top.. now the CPU fan is working at 3500 rpm and there's no way to reduce the noise! The temperatures are REALLY LOW! (27-33°C for all the components). I tried to reset the ram and the CSM but it didn't work at all. The noise is really annoying.
    Anyway I tried to replace it, taking away the old tape and replacing it with a thermal compound for processors, unplug the wire of the sensor but they didn't work any!
    help please!

    Hi bugs3g
    Welcome to Apple Discussions
    Both the Sensor and Cable must be working and connected in order for the SMC to properly control the fans. You might try your local Apple service provider or one of the parts suppliers below for any replacement parts (cable and/or sensor) that you damaged.
    http://www.welovemacs.com/index.html
    http://www.synaptech.com/catalog/
    https://www.applecomponents.com/
    Dennis

  • 2007 A1226 Macbook Pro: Fans out of control, will not shut down, and temp sensors have gone offline.

    So my MBP, just an hour or so ago, failed to shut down.  I click Apple->Shut down, but the computer instead restarts and while loading OS X, gives me an error that says "You restarted your computer because of an error."  The fans are maxed out right now, there is -no- process causing thisl  Also, I use iStatMenus to monitor my temperatures, and all of the CPU sensors have gone offline, iStat is only reporting temps for the hard drive and battery.
    iStat also seems to have lost the ability to control my fan speeds.  Uninstalling and reinstalling iStat did nothing.  Resetting PRAM and the SMC have done nothing either.  Any ideas? 

    To start up your computer in Apple Hardware Test:
    Press the power button to turn on your computer.
    Press and hold the D key before the gray startup screen appears. If Apple Hardware Test does not start up, see the Additional Information section at the end of this article.
    s
    p
    o
    i
    l
    e
    r
    a
    l
    e
    r
    t
    Additional Information
    Apple Hardware Test is included on the DVDs that are shipped with some Macintosh computers. If the copy on your hard drive becomes unavailable, use the DVDs to run Apple Hardware Test.
    For Intel-based Apple computers that shipped with Mac OS X v10.5.4 or earlier, Apple Hardware Test is located on the Mac OS X Install Disc 1 and should be included with your computer.
    For Apple computers that shipped with Mac OS X v10.5.5 to 10.6.7, Apple Hardware Test is located on the Applications Install Disc 2 and should be included with your computer.

Maybe you are looking for

  • Limit the number of open production order

    Dear PP experts, I am working on discrete scenario where client want to limit the number of open production order per work center. The more elaboration is like, for one work center the only specific number of production should remain open (e.g. 5 pro

  • Mac Mini for Digital Signage?

    I need to bring digital text and video on a vertical large plasma or lcd screen at least 42". It should be text on top video in the bottom. Is the Mac Mini output compatible with lets say a Sony PFM42X1/S? Is the DVI output of the Mac Mini compatible

  • Problems updating Photoshop CS6 - Error U44M1I210

    Hi Everyone.  I'm trying to update my Photoshop CS6 Extended with associated bridge and camera Raw but I keep getting a U44M1I210 error message. It's VERY frustrating.  When I search the Adobe website for the update it says I must do the update from

  • Why is trackhistory/hierachy missing on my baseless merges on single WI/changeset?

    I use vs2013 and have made a simple tfs Tool, which - among other Things - do my baseless merges so I avoid using the tf command in a command prompt... :-) The merges works fine but I now discover that my baseless merges loses track history and it lo

  • Vendor list and preferred vendor

    Hi, We are using classic scenario and currently, all carts are intercepted by the purchasing department so purchase requisitions are manually converted into POs. We want to implement vendor lists but SRM assigns any vendor chosen from a vendor list a