3 This file is part of NetVis
4 Copyright @ 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed unter the GPL
13 #include <msp/time/timedelta.h>
26 std::string short_name;
34 Host(NetVis &, const Address &);
36 const Address &get_address() const { return addr; }
37 void set_name(const std::string &);
38 const std::string &get_name() const { return name; }
40 bool is_local() const { return local; }
42 void set_position(const Vector2 &);
43 const Vector2 &get_position() const { return pos; }
45 void set_active(bool);
46 bool get_active() const { return active; }
47 void add_activity(unsigned);
48 float get_activity() const { return activity.get_average(); }
51 void tick(const Msp::Time::TimeDelta &);