Sunday, 7 September 2014

White Star Uml first attempt

Having spent a couple of hours looking at White Star UML, I'm very impressed.  I've successfully created my first basic Java App.

A bit confused on getting the public static void main method defined.

The Operation should be called main
The Owner scope should be classifier ( to create a static method)
The Void return definition is automatically inferred.




Thursday, 13 June 2013

Big data UX depends on improved visualization and analysis tools

I'm busy trying to find a better tool set  for analysing large, complex semi-structured data sets.

Customers and solution providers all too often specify solution requirements based on a prescribed outcome.

list x, y, z.
count x
average of q

Historically this has led to very result orientated and data dense applications.  Customers are now starting to understand that big data has downstream implications for End users.

Users still need the tools for analysing  dense data at a microscopic level, however to successfully exploit large datasets users need advanced UI visualizations that enable them to comprehensively understand the structure of their data at a macro level.

Tools I've seen demonstrated for this include Association graphs, subject maps, hot spot maps.

Saturday, 11 February 2012

Sunday, 4 September 2011

The Software Development IEE process

The Software Development IEE lifecycle processes consist of.

SPMP – Software Project Management Plan IEEE 1058
SQAP – Software Quality Assurance Plan IEEE 730
SCMP – Software Configuration Management Plan IEEE 828
SVVP – Software Validation & Verification Plan IEEE 1012

SRS – Software Requirements Specification IEEE 830

SDD – Software Design Description IEEE 1016
STD – Software Test Documentation IEEE 829

SPMP Software Project Management Plan

To document the agreed deliverables and dates.


SRS Software Requirements Specification


To document the agreed requirements with the project customer and stakeholder, to provide the basis for design and to provide the basis for system test.

SDD Software Description Design /Detailed Design

To document the design and design decisions in order to provide the
basis for implementation and unit test

STD Software Test Documentation

To document how the software will be tested, and record the results.


Saturday, 30 July 2011

SOAPUI AND LOADUI TDE (Test Driven Engineering)

I've been using Eviware's SOAP and LOADUI this last month as part of System testing on a project I've been working on this year.

I started very confidently as I had used SOAPUI on a more focused level on software development tasks in the past, but then I started to hit a number of obstacles:

  • Complexity of set-up and tear down activities limited the scope of what I could achieve in the time available.
  • Only a third of the system was exposed as web services, the rest of it was a combination Java Api's, JMS, etc,..
  • Concurrency requirement were very vague.
  • Throughput requirements were not related to web service operations
This experience has caused me to reflect on the value and level of detail required in Non Functional performance requirements for each system interface.

The biggest lesson learnt is the combining of different aspects of performance into a integrated model of performance: in which different measures of performance are combined and tested together (Responsiveness, Throughput, System load, Growth).

For example Account creation interface should complete in 4 Seconds, 99.95% of the time.
Account creation will be invoked at an Average throughput of 6000 request per hour, Peak throughput per hour is 12,000 requests.
Account creation will be invoked at an Average throughput of 1000 request per minute, peak throughput per minute is 4,000 requests.
The system will be loaded day one with 3.4 million Accounts.
The system will be loaded at the end of year one with 365x250,000 Accounts.



Sunday, 20 March 2011

System Performance - Capacity Planning and Forecasting

Capacity planning analysis for Enterprise system typically takes the following forms:

Efficiency Analysis - Examine the inter-relationship between different resources configurations to achieve a target transaction load/throughput rate, at the lowest resource cost.
Scalability Analysis - Examine the inter-relationship between resources and
transaction load/throughput rates to determine vertical or horizontal scalability options.
Availability Analysis - Examine the inter-relationship between different resources configurations to achieve a target a transaction load/throughput rate servicing a defined set of network interfaces/end points.
Reliability -
Examine the inter-relationship between different resources configurations to maintain a target a transaction load/throughput rate on Fail over.


References Linear Regression BEA's guide to Capacity Planning

Tuesday, 8 March 2011

System Performance - Benchmarks

Synthetic v's Application benchmarks [1]

Benchmarks are designed to mimic a particular type of workload on a component or system. Synthetic benchmarks do this by specially created programs that impose the workload on the component. Application benchmarks run real-world programs on the system. Whilst application benchmarks usually give a much better measure of real-world performance on a given system, synthetic benchmarks are useful for testing individual components, like a hard disk or networking device.

Synthetic Benchmarks:

Whetstone benchmark
is based on floating point algorithm performance tests [2].
Dhrystone benchmarking is based entirely on integer based algorithm performance tests.

The SPECint (Standard Performance Evaluation Corporation) suite evolved from the Dhrystone benchmark.

Application Benchmarks:

Joslin [5] emphasizes three characteristics of the application benchmark.

1. The routines are actually run on the proposed systems.
2. The total throughput time is considered.
3. The routines are aimed at specific applications.

Unrepresentative workloads being tested will provide unreliable benchmark results. Workload modelling is concerned with establishing workloads.

Joslin suggests Four factors to consider:

1. Types of processing — logic, computation, housekeeping, etc.
2. Time requirements — compile, execute, tapes, card units, printers, etc.
3. Equipment requirements — core, I/O channels,printers, etc.
4. Order of the benchmark programs (priority).

The effort and cost involved in designing and applying Application benchmarks gave rise to the Synthetic benchmarks, the most high profile of which include SPECint and TPC benchmarks.



References

[1] http://en.wikipedia.org/wiki/Benchmark_%28computing%29
[2] http://www.roylongbottom.org.uk/whetstone%20results.htm#anchorjava
[3] http://www.spec.org/
[4] http://www.spec.org/cpu2000/results/cint2000.html
[5]
The Evolution of Benchmarking as a Computer Performance Evaluation Technique, MIS Quarterly; Mar85, Vol. 9 Issue 1, p7-16, 10p.

Friday, 25 February 2011

Web 2.0 Understanding the Internet 2001 - 2011

A couple of excellent links for understanding Web 2.0 and the internet in 2011.

The importance of feedback and participation in the internet
http://mediatedcultures.net/mediatedculture.htm.

The rise of companies that own user participation, What is Web 2.0.

Tuesday, 22 February 2011

System Enginnering - Architecture

Systems Engineering provides Architects with great supporting processes, these include Requirements Management, Research and Design, Planning and Realization. The focus of Systems engineering is to ensure all processes in the life-cycle focus on producing the right product. This is more complex than it may initially appear, when the environment serves:
  • multiple users/customers.
  • users/customer that are unable to define what solution they want procure.
  • users/customer that are unaware of what solutions it might be possible to procure.
  • engineers that may have limited or no direct contact with the users/customers or indeed if the user or customer is not directly involved in the process.
System Engineering is a proven method for producing the right product, it is used for projects of individual and multiple-disciplines, different industrial sectors (telecoms to aerospace) and end products (telephones to battleships). System Engineering produces the right product by focussing on the underlying need, developing a solution that comprises components, potentially from different disciplines, and tracing all project activities back to the source requirements.
Requirements Management

Systems engineering requires that System requirements are developed as a separate engineering product from the user/product requirements.

User requirements are:
  • Requirements expressed in the user's language.
  • Immediately understood by the user with out translation to the system domain vocabulary.
  • Duplication is acceptable, where it recognises that different stakeholders hold the same need.
  • The user (or user representative) owns these requirements.

Product requirements are a substitute for User requirements, where a product is being developed for a market/user that does not participate in the development process, i.e. for COTS products the development needs are championed by a Marketing manager or Product development manager who would specify the Product requirements.

The User requirements product (URD) should consist of:
  1. System Context
  2. Capabilities needed
  3. Constraints to be enforced
  4. User characteristics
  5. Operational environment
  6. Assumptions and dependencies

System requirements are:
  • An abstract view of the system, describing system functions. What the system will do, not how it will do it.
  • An analysis and restatement of the real or underlying need, which is not tied to describing a design or solution.
  • Traced directly to User requirements where 1 User requirement might be addressed by 1 or more System requirements.
  • Highlight to users that their needs are reflected throughout the development process.
  • Enable system requirements to be shared across engineering disciplines (Hardware/Software/HCI/Security/Safety/etc,...).
  • Enable capabilities to be developed which can be re-used.
  • Promote testing.
  • Separation of User and System requirements enable management of change and impact assessments to be performed.

The System Requirements product is typically broken into multiple products on larger project, but consists of:

  1. System context.
  2. Functional breakdown of behaviour.
  3. Performance of each function.
  4. Internal interfaces.
  5. Non-Functional Requirements (Safety Case, Security Requirement, HCI).
  6. External interfaces (Interface Control Documents).
  7. Traceability to the user requirements.

Systems level modelling can be performed using a variety of supporting techniques, DFD, State Charts, UML, Functional Hierarchies etc,.. The criteria for completing the functional model is suggested to be:

1. The function model shows how the user requirements are met (Sunny day use cases).
2. The functional model shows faults will be managed at its limits (Rain day use cases).
3. The functional model shows how the system will perform outside of normal tolerances.
4. The functional model describes how system failure.

A useful example for an emergency service Command and Control centre process is:

1. Call logging under normal conditions.
2. Call logging for a major incident,
where external requests match the available resources to meet all needs.
3. Call logging for a catastrophic incident, where external requests exceed the available resources to meet all needs.
4. Call logging when the system fails and DR plans are invoked.

When all these 4 levels are considered, then the functional models behaviour has probably been expressed to a sufficient level of detail.

Architectural Research & Design

The Architectural Research and Design process consists of the following activities
:
  • The selection of technologies, services and components that comprise the solution.
  • How each component of the solution interacts with other components and the external environment.
  • A design that considers alternative solutions and selects the best fit and trade off against source requirements.
  • Identify margins and System performance criteria, possibly exceeding user requirements.
  • A requirements trace, which System and User requirement the solution satisfies.
  • A design that selects solutions that can be sourced via development or procurement within schedule and budget constraints.
A number of iterations of Architectural Design may be produced in order to maximise the value to the customer, as alternate trade off's are reviewed and refined.



The
Architecture Design document product consists of:
  1. Overview
  2. Context
  3. External Systems Interfaces
  4. Design Methods/Approaches/Patterns of Re-use
  5. System Behaviour - The operations and interfaces exposed by the system.
  6. Component Structure - The components of the system and the internal interfaces.
  7. System Layout - The physical arrangement of component instances on Processors/Servers/Sites.
  8. Resource/Cost Estimation.
  9. Requirements Trace.
A Component Requirements Catalogue supporting the Architectural Design should detail:
  1. Component Identifier.
  2. Type: COTS/MOTS/Bespoke.
  3. Source: Supplier.
  4. Component Behaviour and Control.
  5. Interfaces.
  6. Layout.
  7. Dependencies.
  8. Information model.
  9. Performance criteria.
  10. Test Criteria.
The exact nature of the component will necessitate different requirements for Software or Hardware components.

As single component may be re-used within a single architecture or multiple architectures, the requirements for the component should be carefully analysed to identify contradictory modes of operation.

Architectural Planning

Evaluate an architectural design to ensure it optimises the benefits to the 'customer'.

The feasibility, risk and budget need to be assessed prior commissioning component development or procurement. To support this analysis the Architectural design needs to be broken down as a programme of work in a work breakdown structure and costs estimating.

The Architectural planning is joint activity to be conducted with Programme\Project Management, enabling professional staff to manage resourcing, planning, risk and change control management activities.

Value engineering is the process steering the Architectural design activity to provide the right solution. Quality Function Deployment is a tool for providing a structured process to blend requirements for multi-aspect products/systems.

Architectural planning can enable Concurrent engineering to reduce the critical path of the project, however the Concurrent engineering can increase the complexity and risk associated with delivering a project.

Component Development/Procurement

Component development addresses the stage of purchasing or commissioning work from component suppliers.

Architecture Realization

An Integration test strategy produced for Integration, Test and Verification should indicate the the Verification level and methods for critical components. An integration strategy will also produce requirements for the Integration, Test and Verification processes for the delivering the system.

Verification levels for each requirement:
  • System
  • Sub-system
  • Component
Verification Methods:

  • Functional Testing - Check behaviour, interface or performance requirements.
  • Environmental Testing - Heat/Cold/Humidity/Altitude/Gravity/Etc,..
  • Analysis - Simulation
  • Comparison - Re-use of components already verified.
  • Assessment - Inspection, Demonstration or Review

Monday, 14 February 2011

Maven how to add a dependency on a local Jar/ how to add a jar to the local Maven repository.

I spent nearly a day beating my head against the desk on a small Maven project that I had been working on trying to add a jar dependency in my POM.xml, for a group of web service stubs that I had created. The solution I discovered was to add a jar to the local repository.

Using the command line add the Jar file
mvn install:install-file -DgroupId=CustomerSvc -DartifactId=SvcStubs -Dversion=1.0 -Dfile=D:\NB7Projects\SvcStubs\dist\SvcStubs.jar -Dpackaging=jar -DgeneratePom=true

Add to the POM file a dependency:



Thursday, 27 January 2011

SVN Ubuntu Good Links

Today I found a nice tutorial for setting up an SVN Repository on Linux and I found a good substitute for Tortoise SVN , Rapid SVN.

Tutorial
CLI Cheat sheet
RapidSVN notes on Branches, Merging and Baselines.



Tuesday, 25 January 2011

What is a System (too many definitions)....

The International Council on Systems Engineering (INCOSE) summarises the competing definitions of a System in their Glossary of Terms publication.
  • An integrated composite of system elements that provide a capability that satisfies stated needs. (NAWCWPNS)
  • A set of functional elements organized to satisfy user needs. (IEEE)
  • An integrated composite of people, products, and processes that provide a capability to satisfy a stated need or objective. (MIL-STD-499B-UNAPPROVED))
  • Any process that converts inputs to outputs.(Bahill)
  • A composite of equipment and skills, and techniques capable of performing or supporting an operational role, or both. (MILSTD-721C, MIL -STD-280)
  • A composite, at any level of complexity, of personnel, procedures, materials, tools, equipment, facilities, and software. (MILSTD-882B)
  • A combination of two or more sets, generally physically separated when in operation, and such other assemblies and parts necessary to perform an operational function or functions. (DOD-STD-100C)
  • The determination of the integrated quantitative and qualitative requirements for prime mission equipment, its supporting equipment and facilities, procedures (including computer programs), personnel selection and training, and logistics support. (CHASE)
  • A combination of two or more interrelated equipment (sets) arranged in a functional package to perform an operational function or to satisfy a requirement. (DSMC)
  • A set of functional elements organized to satisfy user needs. (IEEE P1220)
  • The composite of equipment, material, computer software, personnel, facilities and information/procedural data that satisfies a user need. (SYSB-1)
  • A composite of equipment skills and techniques capable of performing and/or supporting an operational role. (AFM), (MIL -E-6051 D)
  • A set of interdependent internal systems (segments, elements, subsystems, components, and so on) which perform together as a defined functional unit. (NB Reilly Assoc.)
  • An interacting collection of hardware, software, people, facilities, supplies, and procedures designed to accomplish a specified mission or
  • objective. (Aero Ind)
  • A collection of components organized to accomplish a specific function or set of functions. (IEEE 610.12-1990)
  • A combination of inter-related items arranged to perform a specific function. (ARD50010-91)
  • An organized arrangement in which each component arrangement in which each component part acts, reacts, or interacts in accordance with an overall design inherent in the arrangement. (AIR 1489-88)
  • The complex or hardware and software utilized to affect the control of a process. (Aero Ind)
  • In data processing, any group of software and hardware that is connect to operate as a unit. (SAE DICT)
  • A composite of equipment, subsystems, skills,and techniques capable of performing or supporting an operational role. (MIL-STD-499A), (MIL-STD-463A)
  • A combination of parts, assemblies and sets joined together to perform a specific operational function or functions. (DOD-STD-100C)
  • A combination of inter-related items arranged to perform a specific function. (WATOG)
  • A complex composite of devices and/or procedures to provide a desired functionality. (Aero Ind)
  • A set or collection of interacting elements within a specified boundary. (Aero Ind)
  • A device, procedure, or scheme which behaves according to some description, its function being to operate on information and/or energy and/or matter in a time reference to yield information and/or energy and/or matter.(Systems Philosophy, Ellis & Ludwig, Prentice-Hall, 1962)
  • Orderly combination or arrangement as of particulars, parts, or elements into a whole; especially such combination according to some rational principle. (Black's Law Dictionary, 5th Ed., West Pub, St.Paul, MN, 1979)
  • A combination of inter-related items arranged to perform a specific function. (Aero Ind)
  • A regularly interacting or independent group of items forming a unified whole which performs one or more required functions. (Aero Ind)
  • A composite of equipment, skills, and techniques capable of performing or supporting an operational role, or both. (Aero Ind)
  • Includes all elements of equipment necessary for the control and performance of a particular major function. (FAA AC 120-42A)
  • The concept of system is an abstract, devised synthetic entity. (adapted from W.P.Chase, Mgmt of SE)
  • A combination of elements that will function together to produce the capabilities required to fulfill a mission need. (DFAR)
  • An interacting combination of elements viewed in relation to function. (INCOSE Adopted and Recommended Definition)
  • A term which describes the characteristic action, function, or conditions at the external boundaries of a combination of elements, components, or sub-systems which interact together. (draft NCOSE Terminology WG)
  • A homogeneous entity that exhibits predefined behaviour in the real world and is composed of heterogeneous part that do not individually exhibit that behaviour.(DERA)
  • An item or equipment designed to provide a required service to a set of users, and which is complex enough to consist of several interacting components. (WG6)
  • A collection of components organised to accomplish a specific function or set of functions. (WG6)
  • A system is defined to consist of a set of components which interact according to a design. (IEC 1508)

System Performance (M. Fowler)


Last week I started reading Patterns of Enterprise Application Architecture (Fowler, 2002). In the introduction there is a great examination of how to distinguish between different types of performance requirement.



Response Time - Initial quantity of time taken.
Responsiveness - Quantity of time taken to respond to a work request, but not necessarily to perform the request.
Latency - The time taken to issues commands, e.g. for a RPC between to systems.
Throughput - The volume of data or number of requests that can be processed in a unit of time.
Load - The measure of work being performed, 0 to 100% load for throughput/concurrent sessions.
Load sensitivity - A measure of the Responsiveness/Throughput/Latency degradation of performance when Load is increase or decreased.
Efficiency - The resources consumed to deliver the system. CPU cycles/Memory/Disk/
kilowatts of power.
Capacity - Maximum or upper limit of Load or Throughput.
Scalability - A measure of the systems ability to scale by adding more resources, usually hardware.


Systems Engineering: Coping with Complexity

I've spent a number of years working as Software engineer for a large engineering business which employs Systems Engineering processes and practices. During this time I was often confused about the methodology and processes being applied in Systems Engineering . This book (Systems Engineering: Coping with Complexity) is a superb overview of this engineering discipline and provides a great introduction for anyone new to Systems Engineering coming from an Information Systems background, as I have.



As a concise summary, I would describe Systems Eng. as an approach for developing Systems with a combination of engineering practices (Chemical, Civil, Electrical, Mechanical, Environmental, etc,...) for the development of anything and everything (from cars production systems to a space station).

This makes this fundamentally a practice that is requirements driven and interdisciplinary, to ensure that requirements flow down to teams following differing engineering practices and the products from different teams combine together to satisfy the original requirements whilst minimising any emergent properties.

The following is my summary from this text.


What is Systems Engineering?

An interdisciplinary approach encompassing the entire technical effort to evolve and verify an integrated and life-cycle balanced set of system people, product, and process solutions that satisfy customer needs. Following a defined set of standards
IEEE 1220, EIA632.

Systems engineering encompasses

  • Technical efforts related to the development, manufacturing, verification, deployment, operations, support, disposal of, and user training for, system products and processes.
  • Definition and management of the system configuration.
  • Translation of the system definition into work breakdown structures
  • Development of information for management decision making.
Why is it necessary?
  • An approach that considers whole life-cycle of systems development taking a system from Concept, Design, Production, Distribution, In Service Support and Disposal.
  • Complexity of combining different technologies is increasing.
  • Risk of failure increases in relation to complexity, budget and time pressures.
  • Investment in systems is an arms race both in reducing operating costs for customers and producing new products that satisfy new functional goals.
What differentiate SE from traditional Systems Analysis.

Products v's Systems
Customers v's Users

Wednesday, 19 January 2011

JMX and the Java Console

Working through an Apache Service Mix tutorial I have discovered JMX ( Java Management Extension). JMX provided since Java 5 is mechanism for managing and monitoring applications, system objects, devices (e. g. printers ) and service oriented networks .



Resources are represented by objects called MBeans (Managed Beans). The MBean represents resource running in the JVM, such as an application or a Java EE technical service (transactional monitor, JDBC driver, etc.). They can be used for getting and setting applications configuration (pull), for collecting statistics (pull) (e.g. performance, resources usage, problems) and notifying events (push) (e.g. faults, state changes).



Service Mix allows all aspects of the ESB (components, endpoints, ...) to monitored and managed using JMX.

The Java Console (/usr/lib/jvm/java-6-sun-1.6.0.22/bin/jconsole) enables the state of all objects running inside the JVM to be interrogated and even allows methods for objects inside the heap to be called. The connection is selected when running the console.




Thursday, 13 January 2011

Datacentre Network Design

Datacentre networks connect the equipment inside to the outside world (a remote user or another datacentre).

Key Datacentre Requirements

  • Secure
  • High performance
  • Cost efficient (Especially regarding energy consumption).

There's no one off-the-shelf design for a datacentre network. Component selection will vary according to budget, business requirements, site location and capacity, available power and cooling.

Datacentre network are designed a series of layers, with the stored data at the bottom. On the 1st outer layer is the connection to the outside world - the internet - and, if it's an enterprise's own datacentre, to the rest of the company. If the datacentre is owned by a service provider and is servicing a number of external clients, the Internet connection and any other connections linking clients directly also sit on the outside ring.

The second layer, commonly referred to as the edge or access layer, consists of IP-based, Ethernet devices, such as firewalls, packet inspection appliances and switches, that route traffic to and from the core of the datacentre to the outside world. Here too sit many web servers in a so-called demilitarised zone or DMZ: hemmed in by firewalls, external visitors are allowed this far into the datacentre network but no further.

Below this is the core, with large, high-performance switches consisting of blades plugged into chassis, with each blade providing dozens of ports. The chassis is likely to be managed by a management blade, while other features such as security and traffic shaping can be provided by further blades. All data passes through these devices.

Closer to the servers will be a further layer, consisting of a series of switches, maybe one per rack or row of racks, depending on density, tasked with distributing data to and between servers in order to minimise load on the core.

Behind the servers, conceptually, is the main storage. This, the fourth and final layer, consists of a series of high-performance storage arrays connected via a Fibre Channel network that's entirely separate from the main network. This means that only the servers can connect directly to the storage, although there's likely also to be a link from the storage to the IP network for management purposes.

The Fibre Channel network needs separate switches and management systems to configure it, adding to IT staff's workload, so this situation is slowly changing. Over the next ten years analysts expect that storage systems will be connected using the IP-based Ethernet network, probably running at either 40Gbps or 100Gbps.

Request flow through a datacentre

A typical flow throught these layers will proceed as follows: The user will cick on a link in their browser, this generates a request for data that arrives at our datacentre via the Internet connection. The incoming request is scanned for malware, and is re-assembled and decrypted if WAN optimisation and encryption are in use. It's then sent on to a switch in the access layer. This switch routes the request to a web server in the DMZ, which might be physical or virtual, and which might be fronted by a load balancer to allow a cluster of servers to handle high traffic levels.

The web server receives and processes the request. A response needs information from a database, so the web server requests data from a database server at the core of the network.

Th data request is passed to a core switch which routes it to a database server. The processed request traverses the storage network, is pulled off the disks, arrives back from main storage, is packaged up and sent back to the web server. It's then assembled into a web page and pushed back out the Internet connection.