35 #include "libxml/xmlIO.h"
94 double getValue (
const double d = 0.0);
127 int getTarget(
const unsigned int target)
const;
134 void setDirection (
const double x,
const double y,
const double z);
140 void getDirection (
double & x,
double & y,
double & z)
const;
156 virtual void ansysPrint(std::ostream &)
const;
159 void xmlPrint(std::ostream &)
const;
virtual void ansysPrint(std::ostream &) const
Print the load in ansys format (BEWARE: not everything is implemented)
Direction getDirection() const
get direction object (a copy)
ValueEvent * getValueEvent(const unsigned int i) const
Get a the ValueEvent.
void addTarget(std::string currentData)
add a lots of new targets using a description string (...)
bool isActive(const double t)
return true if the load is active at time t
void addValueEvent(const double v, const double d)
set the valueEvent.
void setUnit(const Unit u)
set the unit
friend std::ostream & operator<<(std::ostream &, Load)
print to an output stream in XML format.
void setDirection(const double x, const double y, const double z)
Set the direction using 3 coordinates.
std::string typeString
Definition: Load.h:176
unsigned int numberOfValueEvents() const
get the nr of value event
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
TargetList targetList
the list of targets
Definition: Load.h:166
TargetList getTargetList() const
get the complete list
unsigned int numberOfTargets() const
get the number of target
Unit getUnit() const
get the unit
static Load * LoadFactory(std::string type)
static methode to create a new load using a specific type (return NULL if type is unknown) ...
void setTargetList(const TargetList &)
set the complete list
Direction dir
Definition: Load.h:174
std::vector< ValueEvent * > eventList
the list of different events
Definition: Load.h:168
virtual ~Load()
destructor is deleting all the value events (BEWARE!!!)
double getValue(const double d=0.0)
The current value at date d (default: d = 0.0).
void xmlPrint(std::ostream &) const
Print to an ostream.
Manage a list of targets, can be created/modified using either an integer, a name, a list of integers given in a string (e.g.
Definition: TargetList.h:45
void addEvent(ValueEvent *ve)
Insert an event from the particular load the load is set to value v when time is equal to t...
Class that describes a load to be used in the simulation.
Definition: Load.h:53
string(REGEX REPLACE"^.*-(.*)-.*""\\1"ARCH"${CAMITK_CONTINUOUS_INTEGRATION}") string(REGEX REPLACE"^.*-.*-(.*)""\\1"BUILDTYPE"$
Definition: continuous.cmake:34
int getTarget(const unsigned int target) const
Get a target by index.
Class that defines the unit of the Load.
Definition: Unit.h:46
Unit unit
Definition: Load.h:175
void deleteEventList()
delete all the list
A valueEvent of a load is composed of a value and a date.
Definition: ValueEvent.h:41
std::string getType() const
get the type string, has to be impleted in subclasses
void setAllEvents(std::vector< ValueEvent * > &)
set all value events