fr.cnes.genopus.nonWidget.maneuvers
Class CustomEngine

java.lang.Object
  extended by fr.cnes.genopus.nonWidget.maneuvers.CustomEngine
All Implemented Interfaces:
fr.cnes.sirius.patrius.assembly.IPartProperty, Serializable, Cloneable

public class CustomEngine
extends Object
implements Cloneable, fr.cnes.sirius.patrius.assembly.IPartProperty, Serializable

Class containing the engine data.

Author:
sumelzi, bacr
See Also:
Serialized Form

Constructor Summary
CustomEngine()
          Creates a new instance.
CustomEngine(String nameEngine, double isp, double thrust)
          Creates a new instance.
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomEngine

public CustomEngine()
Creates a new instance.


CustomEngine

public CustomEngine(String nameEngine,
                    double isp,
                    double thrust)
Creates a new instance.

Parameters:
nameEngine - engine name
isp - engine isp (s)
thrust - engine thrust (N)
Method Detail

getEngineName

public String getEngineName()
Get the engine name.

Returns:
the engine name

getIsp

public double getIsp()
Get the engine isp.

Returns:
the engine isp

getThrust

public double getThrust()
Get the engine thrust.

Returns:
the engine thrust

getType

public fr.cnes.sirius.patrius.assembly.PropertyType getType()
Specified by:
getType in interface fr.cnes.sirius.patrius.assembly.IPartProperty

clone

public CustomEngine clone()
                   throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

copyEngineValues

public void copyEngineValues(CustomEngine engine)
Copies the values from the engine in the parameter to this object.

Parameters:
engine - the values from the engine to copy.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2017. All rights reserved.