com.jgoodies.skeleton.domain
Class Segment

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.skeleton.domain.Segment
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable

public class Segment
extends com.jgoodies.binding.beans.Model

Describes shaft segments and provides bound bean properties for the segment description, diameters, and criteria.

Version:
$Revision: 1.7 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static String PROPERTYNAME_CONNECTION
           
static String PROPERTYNAME_DA
           
static String PROPERTYNAME_DA2
           
static String PROPERTYNAME_DI
           
static String PROPERTYNAME_DI2
           
static String PROPERTYNAME_DIAMETER
           
static String PROPERTYNAME_IDENTIFIER
           
static String PROPERTYNAME_K_FACTOR
           
static String PROPERTYNAME_LEN
           
static String PROPERTYNAME_LOCATION
           
static String PROPERTYNAME_LONGITUDINAL_SLOTS
           
static String PROPERTYNAME_POWER
           
static String PROPERTYNAME_PTI
           
static String PROPERTYNAME_RADIAL_HOLES
           
static String PROPERTYNAME_RADIUS
           
 
Constructor Summary
Segment(String identifier)
          Constructs a Segment with the given identifier.
 
Method Summary
 String getConnection()
           
 int getDa()
           
 int getDa2()
           
 int getDi()
           
 int getDi2()
           
 int getDiameter()
           
 String getIdentifier()
          Returns this segment's identifier.
 String getKFactor()
           
 int getLen()
           
 String getLocation()
           
 boolean getLongitudinalSlots()
           
 double getPower()
           
 double getPti()
           
 boolean getRadialHoles()
           
 int getRadius()
           
 void setConnection(String newConnection)
           
 void setDa(int newDa)
           
 void setDa2(int newDa2)
           
 void setDi(int newDi)
           
 void setDi2(int newDi2)
           
 void setDiameter(int newDiameter)
           
 void setIdentifier(String newIdentifier)
           
 void setKFactor(String newKFactor)
           
 void setLen(int newLen)
           
 void setLocation(String newLocation)
           
 void setLongitudinalSlots(boolean newLongitudinalSlots)
           
 void setPower(double newPower)
           
 void setPti(double newPti)
           
 void setRadialHoles(boolean newRadialHoles)
           
 void setRadius(int newRadius)
           
 String toString()
          Returns a string representation for this segment.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTYNAME_IDENTIFIER

public static final String PROPERTYNAME_IDENTIFIER
See Also:
Constant Field Values

PROPERTYNAME_PTI

public static final String PROPERTYNAME_PTI
See Also:
Constant Field Values

PROPERTYNAME_POWER

public static final String PROPERTYNAME_POWER
See Also:
Constant Field Values

PROPERTYNAME_LEN

public static final String PROPERTYNAME_LEN
See Also:
Constant Field Values

PROPERTYNAME_DA

public static final String PROPERTYNAME_DA
See Also:
Constant Field Values

PROPERTYNAME_DI

public static final String PROPERTYNAME_DI
See Also:
Constant Field Values

PROPERTYNAME_DA2

public static final String PROPERTYNAME_DA2
See Also:
Constant Field Values

PROPERTYNAME_DI2

public static final String PROPERTYNAME_DI2
See Also:
Constant Field Values

PROPERTYNAME_RADIUS

public static final String PROPERTYNAME_RADIUS
See Also:
Constant Field Values

PROPERTYNAME_DIAMETER

public static final String PROPERTYNAME_DIAMETER
See Also:
Constant Field Values

PROPERTYNAME_LOCATION

public static final String PROPERTYNAME_LOCATION
See Also:
Constant Field Values

PROPERTYNAME_K_FACTOR

public static final String PROPERTYNAME_K_FACTOR
See Also:
Constant Field Values

PROPERTYNAME_CONNECTION

public static final String PROPERTYNAME_CONNECTION
See Also:
Constant Field Values

PROPERTYNAME_RADIAL_HOLES

public static final String PROPERTYNAME_RADIAL_HOLES
See Also:
Constant Field Values

PROPERTYNAME_LONGITUDINAL_SLOTS

public static final String PROPERTYNAME_LONGITUDINAL_SLOTS
See Also:
Constant Field Values
Constructor Detail

Segment

public Segment(String identifier)
Constructs a Segment with the given identifier.

Parameters:
identifier - the initial name
Method Detail

getConnection

public String getConnection()
Returns:
the connection.

getDa

public int getDa()
Returns:
the da.

getDa2

public int getDa2()
Returns:
the da2.

getDi

public int getDi()
Returns:
the di.

getDi2

public int getDi2()
Returns:
the di2.

getDiameter

public int getDiameter()
Returns:
the diameter.

getIdentifier

public String getIdentifier()
Returns this segment's identifier.

Returns:
the identifier.

getKFactor

public String getKFactor()
Returns:
the k-factor.

getLen

public int getLen()
Returns:
the len.

getLocation

public String getLocation()
Returns:
the location.

getLongitudinalSlots

public boolean getLongitudinalSlots()
Returns:
true if this segment has longitudinal slots.

getPower

public double getPower()
Returns:
the power.

getPti

public double getPti()
Returns:
the pti.

getRadialHoles

public boolean getRadialHoles()
Returns:
true if this segment has radial holes.

getRadius

public int getRadius()
Returns:
the radius.

setConnection

public void setConnection(String newConnection)
Parameters:
newConnection - The connection to set.

setDa

public void setDa(int newDa)
Parameters:
newDa - The da to set.

setDa2

public void setDa2(int newDa2)
Parameters:
newDa2 - The da2 to set.

setDi

public void setDi(int newDi)
Parameters:
newDi - The di to set.

setDi2

public void setDi2(int newDi2)
Parameters:
newDi2 - The di2 to set.

setDiameter

public void setDiameter(int newDiameter)
Parameters:
newDiameter - The diameter to set.

setIdentifier

public void setIdentifier(String newIdentifier)
Parameters:
newIdentifier - the identifier to set

setKFactor

public void setKFactor(String newKFactor)
Parameters:
newKFactor - The kFactor to set.

setLen

public void setLen(int newLen)
Parameters:
newLen - The len to set.

setLocation

public void setLocation(String newLocation)
Parameters:
newLocation - The location to set.

setLongitudinalSlots

public void setLongitudinalSlots(boolean newLongitudinalSlots)
Parameters:
newLongitudinalSlots - true if this segment has longitudinal slots.

setPower

public void setPower(double newPower)
Parameters:
newPower - The power to set.

setPti

public void setPti(double newPti)
Parameters:
newPti - The pti to set.

setRadialHoles

public void setRadialHoles(boolean newRadialHoles)
Parameters:
newRadialHoles - true if this segment has radial holes.

setRadius

public void setRadius(int newRadius)
Parameters:
newRadius - The radius to set.

toString

public String toString()
Returns a string representation for this segment. Currently it prints the class info and identifier.

Overrides:
toString in class Object
Returns:
a string representation for this segment


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.