|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
CellularAutonome11
Provides the static framework for a cellular autonome, comprised of an array of Cell objects
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static Cell11[] |
allCells
Array of Cell objects that make up the cellular autonome |
static int[] |
areaFreqHist
|
static int[] |
areaFreqHist2
|
static int[] |
areaFreqHistCum
|
static int[] |
areaFreqHistInterval
|
static double |
constantStressIncrement
Magnitude of the constant stress increment |
static java.io.FileWriter |
fwRuptureNumber
File writer for rupture number and total loading |
static int[] |
initialRuptureSite
|
static int |
loadingMechanism
Case integer used to determine loading method |
static double |
loadingStressOutputIncrement
|
static double |
logConversionFactor
|
static double |
maxRelaxStressFactor
|
static double |
maxStrength
Maximum rupture strength threshold for lattice |
static double |
minStrength
Minimum rupture strength threshold for lattice |
static int |
neighbourNumber
|
static boolean |
newRuptures
Are there new ruptures to propogate? |
static double |
nextOutputLoadingStress
|
static int[] |
numberOfRupturesFromSite
|
static double |
percentageNoise
Percentage noise to be added |
static int |
runningRuptureCount
|
static int |
runtimeDuration
Number of timestep iterations |
static int |
time
Number of times a loading increment has been added. |
static int |
TotalCellNumber
Total number of cells in cellular autonome |
static double |
totalLoadingStress
Total stress load added to each cell from driving plate |
static int |
totalNumberOfRuptures
Total number of ruptures in a timestep |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CellularAutonome11()
|
Method Summary | |
static void |
countClusterAreas()
|
double |
getBeta()
returns beta |
double |
getStressIncrement(int loadingMechanism)
|
void |
init()
Initialises the array of cells with their initial values |
void |
initStreams()
Initialise data streams |
void |
paint(java.awt.Graphics g)
Draws cellular autonome according to some colour specification |
void |
pauseAutonome()
Method to pause cellularAutonome |
void |
printWorldParameters()
Print the runtime parameters to file |
void |
propagateStressToNeighboursOf(int n)
|
double |
proximityToFailure()
Method determines the stress increment to be added when it is used to propogate only one rupture |
void |
resumeAutonome()
Method to resume running of cellularAutonome after it has been paused |
void |
saveData()
Method to save data safely by closing files before exiting program |
void |
sendDataToDataStream()
|
void |
setAsymmetricFactor(double value)
|
void |
setBeta(double value)
Sets beta |
void |
setFileNameRoot(java.lang.String value)
|
void |
setLoadingMechanism(java.lang.String value)
|
void |
setMaxStrength(double value)
sets maximumStrength |
void |
setMinStrength(double value)
sets minimumStrength |
void |
setNeighbourNumber(int value)
|
void |
setNx(int value)
Set cell dimension |
void |
setPercentageNoise(double value)
|
void |
setPeriodicBC(boolean value)
|
void |
setRelaxationStressFactor(double value)
|
void |
startAutonome()
|
static void |
writeAreaFreqHist(int TotalCellNumber,
int[] areaFreqHist,
java.io.FileWriter fw)
|
static void |
writeAreaFreqHist(int TotalCellNumber,
int[] areaFreqHist,
int[] areaFreqHist2,
java.io.FileWriter fw)
|
static void |
writeCSE(int binNumber,
int[] connectingSpringEnergyBin,
double total,
java.io.FileWriter fw)
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double logConversionFactor
public static int TotalCellNumber
public static int runtimeDuration
public static int loadingMechanism
public static int neighbourNumber
public static int totalNumberOfRuptures
public static int runningRuptureCount
public static int time
public static double totalLoadingStress
public static double loadingStressOutputIncrement
public static double nextOutputLoadingStress
public static Cell11[] allCells
public static boolean newRuptures
public static java.io.FileWriter fwRuptureNumber
public static double maxStrength
public static double minStrength
public static double percentageNoise
public static double constantStressIncrement
public static double maxRelaxStressFactor
public static int[] areaFreqHist
public static int[] areaFreqHist2
public static int[] areaFreqHistInterval
public static int[] areaFreqHistCum
public static int[] initialRuptureSite
public static int[] numberOfRupturesFromSite
Constructor Detail |
public CellularAutonome11()
Method Detail |
public void init()
public void initStreams()
public void printWorldParameters()
public void propagateStressToNeighboursOf(int n)
public void sendDataToDataStream()
public double proximityToFailure()
public double getBeta()
public void setNx(int value)
value
- Number of cells along an axispublic void setNeighbourNumber(int value)
public void setBeta(double value)
value
- Conservation factorpublic void setAsymmetricFactor(double value)
public void setPeriodicBC(boolean value)
public void setMaxStrength(double value)
value
- The maximum cell strength valuepublic void setMinStrength(double value)
value
- The minimum cell strength valuepublic void setFileNameRoot(java.lang.String value)
public void setLoadingMechanism(java.lang.String value)
public double getStressIncrement(int loadingMechanism)
public void setPercentageNoise(double value)
value
- public void setRelaxationStressFactor(double value)
public void startAutonome()
public void pauseAutonome()
public void resumeAutonome()
public void saveData()
public static void writeAreaFreqHist(int TotalCellNumber, int[] areaFreqHist, java.io.FileWriter fw)
public static void writeAreaFreqHist(int TotalCellNumber, int[] areaFreqHist, int[] areaFreqHist2, java.io.FileWriter fw)
public static void writeCSE(int binNumber, int[] connectingSpringEnergyBin, double total, java.io.FileWriter fw)
public void paint(java.awt.Graphics g)
g
- public static void countClusterAreas()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |