public class CustomEngine extends Object implements Cloneable, fr.cnes.sirius.patrius.assembly.IPartProperty, Serializable
| Constructor and Description |
|---|
CustomEngine()
Creates a new instance.
|
CustomEngine(String nameEngine,
double isp,
double thrust)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
CustomEngine |
clone() |
void |
copyEngineValues(CustomEngine engine)
Copies the values from the engine in the parameter to this object.
|
boolean |
equals(Object obj) |
String |
getEngineName()
Get the engine name.
|
double |
getIsp()
Get the engine isp.
|
double |
getThrust()
Get the engine thrust.
|
fr.cnes.sirius.patrius.assembly.PropertyType |
getType() |
int |
hashCode() |
String |
toString() |
public CustomEngine()
public CustomEngine(String nameEngine, double isp, double thrust)
nameEngine - engine nameisp - engine isp (s)thrust - engine thrust (N)public String getEngineName()
public double getIsp()
public double getThrust()
public fr.cnes.sirius.patrius.assembly.PropertyType getType()
getType in interface fr.cnes.sirius.patrius.assembly.IPartPropertypublic CustomEngine clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void copyEngineValues(CustomEngine engine)
engine - the values from the engine to copy.Copyright © 2017. All rights reserved.