net.jimmc.spelsim
Class Cable

java.lang.Object
  |
  +--net.jimmc.spelsim.Cable

public class Cable
extends java.lang.Object

The cable and attached masses.


Constructor Summary
Cable()
          Create a cable.
 
Method Summary
 double getBaseArea()
          Get the base area of the cable.
static Cable getCable(java.lang.String name)
          Get a cable with preset values.
static java.lang.String[] getCableNames()
          Get the list of known cable names.
 double getCapacity()
          Get the capacity of the cable.
 double getCenterOfCentrifugalAltitude()
          Get the altitude of the center of centrifugal of the cable.
 double getCenterOfGravityAltitude()
          Get the altitude of the center of gravity of the cable.
 double getCenterOfMassAltitude()
          Get the altitude of the center of mass of the cable.
 double getCounterweightMass()
          Get the mass of the counterweight.
 double getLength()
          Get the length of the cable.
 double getMass()
          Get the total mass of the cable.
 Material getMaterial()
          Get the material of the cable.
 Planet getPlanet()
          Get the planet aound which the cable orbits.
 double getSafetyFactor()
          Get the safety factor of the cable.
 double getTaper()
          Get the cable taper factor.
 void recalculateElements()
          Recalculate the elements.
 void setCapacity(double capacity)
          Set the capacity of the cable.
 void setLength(double length)
          Set the length of the cable.
 void setMaterial(Material material)
          Set the material of the cable.
 void setPlanet(Planet planet)
          Set the planet around which the cable orbits.
 void setSafetyFactor(double safetyFactor)
          Set the safety factor of the cable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cable

public Cable()
Create a cable.

Method Detail

getCable

public static Cable getCable(java.lang.String name)
Get a cable with preset values.


getCableNames

public static java.lang.String[] getCableNames()
Get the list of known cable names.


setLength

public void setLength(double length)
Set the length of the cable.

Parameters:
length - The length of the cable in meters.

getLength

public double getLength()
Get the length of the cable.

Returns:
The length of the cable in meters.

setCapacity

public void setCapacity(double capacity)
Set the capacity of the cable.

Parameters:
capacity - The capacity of the cable in Newtons.

getCapacity

public double getCapacity()
Get the capacity of the cable.

Returns:
The capacity of the cable in Newtons.

setSafetyFactor

public void setSafetyFactor(double safetyFactor)
Set the safety factor of the cable.


getSafetyFactor

public double getSafetyFactor()
Get the safety factor of the cable.

Returns:
The safety factor of the cable.

setMaterial

public void setMaterial(Material material)
Set the material of the cable.

Parameters:
material - The material from which the cable is made.

getMaterial

public Material getMaterial()
Get the material of the cable.

Returns:
The material from which the cable is made.

setPlanet

public void setPlanet(Planet planet)
Set the planet around which the cable orbits.

Parameters:
planet - The planet around which the cable orbits.

getPlanet

public Planet getPlanet()
Get the planet aound which the cable orbits.

Returns:
The planet aound which the cable orbits.

getBaseArea

public double getBaseArea()
Get the base area of the cable.


getMass

public double getMass()
Get the total mass of the cable.


getCounterweightMass

public double getCounterweightMass()
Get the mass of the counterweight.


getTaper

public double getTaper()
Get the cable taper factor. The thickest part of the cable is at synchronous orbit. The taper is the ratio of that thickness to the thickness at the base of the cable.


getCenterOfMassAltitude

public double getCenterOfMassAltitude()
Get the altitude of the center of mass of the cable.

Returns:
The altitude of the center of mass over the planet surface in meters.

getCenterOfGravityAltitude

public double getCenterOfGravityAltitude()
Get the altitude of the center of gravity of the cable.

Returns:
The altitude of the center of gravity over the planet surface in meters.

getCenterOfCentrifugalAltitude

public double getCenterOfCentrifugalAltitude()
Get the altitude of the center of centrifugal of the cable.

Returns:
The altitude of the center of centrifugal over the planet surface in meters.

recalculateElements

public void recalculateElements()
Recalculate the elements.